Commit cbeef790 by ruyun.zhang

效率绩效人数Null计算问题修复

parent ffa281f0
...@@ -367,7 +367,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS ...@@ -367,7 +367,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
var avg = (empolyee.FitPeopleValue.HasValue) var avg = (empolyee.FitPeopleValue.HasValue)
? empolyee.FitPeopleValue ? empolyee.FitPeopleValue
: resAccount.Number == 0 ? 0 : resAccount.PerforTotal / resAccount.Number; : resAccount.Number == 0 ? 0 : resAccount.PerforTotal / resAccount.Number;
var effAvg = empolyee.PermanentStaff == 0 ? 0 : resAccount.PerforTotal / empolyee.PermanentStaff; var effAvg = (empolyee.PermanentStaff == 0 ? 0 : resAccount.PerforTotal / empolyee.PermanentStaff) ?? 0;
//var efficiency = avg * (empolyee.Efficiency ?? 1); //var efficiency = avg * (empolyee.Efficiency ?? 1);
var scale = resAccount.PerforTotal * (empolyee.Scale ?? 1); var scale = resAccount.PerforTotal * (empolyee.Scale ?? 1);
......
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