允许业务中层空测试

parent 9893add7
...@@ -30,7 +30,7 @@ public List<res_baiscnorm> ComputeAvg(List<res_baiscnorm> baiscnormList, List<Co ...@@ -30,7 +30,7 @@ public List<res_baiscnorm> ComputeAvg(List<res_baiscnorm> baiscnormList, List<Co
}; };
foreach (var item in keyList) foreach (var item in keyList)
{ {
var count = computeEmployees.Where(t => t.UnitType == item.UnitType.ToString()).Sum(t => t.Basics); var count = computeEmployees?.Where(t => t.UnitType == item.UnitType.ToString()).Sum(t => t.Basics) ?? 0;
var dataList = computes.Where(t => t.UnitType == item.UnitType.ToString()); var dataList = computes.Where(t => t.UnitType == item.UnitType.ToString());
var baiscnorm = new res_baiscnorm var baiscnorm = new res_baiscnorm
{ {
......
...@@ -300,6 +300,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS ...@@ -300,6 +300,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
dataList.AddRange(AutoMapper.Mapper.Map<List<res_account>>(account.PerData.Select(t => (PerDataAccountBaisc)t))); dataList.AddRange(AutoMapper.Mapper.Map<List<res_account>>(account.PerData.Select(t => (PerDataAccountBaisc)t)));
} }
List<ComputeResult> computeList = new List<ComputeResult>(); List<ComputeResult> computeList = new List<ComputeResult>();
if (empolyeeList == null) return computeList;
var isBudget = budgetService.GetAdjustAndGrant(allot, out decimal adjust, out decimal grant); var isBudget = budgetService.GetAdjustAndGrant(allot, out decimal adjust, out decimal grant);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment