优先取绩效基础核算参考值

parent ba5ea1ea
...@@ -475,13 +475,16 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot ...@@ -475,13 +475,16 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot
}; };
decimal? baiscnorm = 1; decimal? baiscnorm = compute?.FitPeopleValue ?? 0;
if (compute?.FitPeopleValue == 0)
{
var perforTypeItem = perforTypeArray.FirstOrDefault(t => t.Description == item.FitPeople); var perforTypeItem = perforTypeArray.FirstOrDefault(t => t.Description == item.FitPeople);
if (perforTypeItem != null) if (perforTypeItem != null)
{ {
var perforType = (PerforType)perforTypeItem.Value; var perforType = (PerforType)perforTypeItem.Value;
baiscnorm = item.FitPeopleValue ?? baiscNormService.GetBaiscNorm(baiscnormList, perforType); baiscnorm = item.FitPeopleValue ?? baiscNormService.GetBaiscNorm(baiscnormList, perforType);
} }
}
//添加参数计算 //添加参数计算
compute.BaiscNormValue = baiscnorm * (item.FitPeopleRatio ?? 0); compute.BaiscNormValue = baiscnorm * (item.FitPeopleRatio ?? 0);
//绩效合计 //绩效合计
......
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