可空允许

parent 4f0bee3d
...@@ -701,14 +701,14 @@ ...@@ -701,14 +701,14 @@
</member> </member>
<member name="M:Performance.Api.Controllers.EmployeeController.GetAprGroupList(Performance.EntityModels.per_apr_amount)"> <member name="M:Performance.Api.Controllers.EmployeeController.GetAprGroupList(Performance.EntityModels.per_apr_amount)">
<summary> <summary>
获取人员补充绩效列表 医院其他绩效审核
</summary> </summary>
<param name="request"></param> <param name="request"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Performance.Api.Controllers.EmployeeController.GetAprDetail(Performance.EntityModels.per_apr_amount)"> <member name="M:Performance.Api.Controllers.EmployeeController.GetAprDetail(Performance.EntityModels.per_apr_amount)">
<summary> <summary>
获取人员补充绩效列表 医院其他绩效审核详情
</summary> </summary>
<param name="request"></param> <param name="request"></param>
<returns></returns> <returns></returns>
......
...@@ -31,7 +31,7 @@ public List<res_baiscnorm> ComputeAvg(List<res_baiscnorm> baiscnormList, List<Co ...@@ -31,7 +31,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) ?? 0; 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
{ {
PositionName = EnumHelper.GetDescription(item.Reference), PositionName = EnumHelper.GetDescription(item.Reference),
...@@ -59,16 +59,16 @@ public List<res_baiscnorm> ComputeOtherAvg(List<res_baiscnorm> baiscnormList, Li ...@@ -59,16 +59,16 @@ public List<res_baiscnorm> ComputeOtherAvg(List<res_baiscnorm> baiscnormList, Li
foreach (var item in keyList) foreach (var item in keyList)
{ {
var count = empolyeeList.Count(t => t.AccountType == item.type.ToString()); var count = empolyeeList?.Count(t => t.AccountType == item.type.ToString())??0;
if (count > 0) if (count > 0)
{ {
var dataList = computes.Where(t => t.AccountType == item.type.ToString()); var dataList = computes?.Where(t => t.AccountType == item.type.ToString());
var baiscnorm = new res_baiscnorm var baiscnorm = new res_baiscnorm
{ {
PositionName = EnumHelper.GetDescription(item.reference), PositionName = EnumHelper.GetDescription(item.reference),
TotelNumber = count, TotelNumber = count,
TotelValue = count == 0 ? 0 : dataList.Sum(t => t.GiveFee), TotelValue = count == 0 ? 0 : dataList?.Sum(t => t.GiveFee),
AvgValue = Math.Round((dataList.Sum(t => t.GiveFee) / count) ?? 0) AvgValue = Math.Round((dataList?.Sum(t => t.GiveFee) / count) ?? 0)
}; };
baiscnormList.Add(baiscnorm); baiscnormList.Add(baiscnorm);
} }
...@@ -92,16 +92,16 @@ public List<res_baiscnorm> ComputeOtherAvg(List<res_baiscnorm> baiscnormList, Li ...@@ -92,16 +92,16 @@ public List<res_baiscnorm> ComputeOtherAvg(List<res_baiscnorm> baiscnormList, Li
foreach (var item in keyList) foreach (var item in keyList)
{ {
var count = empolyeeList.Count(t => t.AccountType == item.type.ToString()); var count = empolyeeList?.Count(t => t.AccountType == item.type.ToString()) ?? 0;
if (count > 0) if (count > 0)
{ {
var dataList = computes.Where(t => t.AccountType == item.type.ToString()); var dataList = computes?.Where(t => t.AccountType == item.type.ToString());
var baiscnorm = new res_baiscnorm var baiscnorm = new res_baiscnorm
{ {
PositionName = EnumHelper.GetDescription(item.reference), PositionName = EnumHelper.GetDescription(item.reference),
TotelNumber = count, TotelNumber = count,
TotelValue = dataList.Sum(t => t.GiveFee), TotelValue = dataList?.Sum(t => t.GiveFee),
AvgValue = count == 0 ? 0 : Math.Round((dataList.Sum(t => t.GiveFee) / count) ?? 0) AvgValue = count == 0 ? 0 : Math.Round((dataList?.Sum(t => t.GiveFee) / count) ?? 0)
}; };
baiscnormList.Add(baiscnorm); baiscnormList.Add(baiscnorm);
} }
......
...@@ -448,6 +448,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot ...@@ -448,6 +448,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot
//var workyearList = perforCofworkyearRepository.GetEntities(t => t.AllotID == allot.ID); //var workyearList = perforCofworkyearRepository.GetEntities(t => t.AllotID == allot.ID);
List<ComputeResult> computeList = new List<ComputeResult>(); List<ComputeResult> computeList = new List<ComputeResult>();
if (empolyeeList == null) return computeList;
List<string> involves = new List<string> List<string> involves = new List<string>
{ {
......
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