微调绩效

parent 155b6ca0
...@@ -284,7 +284,7 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, List<res_ ...@@ -284,7 +284,7 @@ public List<PerSheet> Compute(PerExcel excel, List<PerSheet> perSheet, List<res_
{ {
string minimumReference = dept.MinimumReference; string minimumReference = dept.MinimumReference;
if (dept.MinimumReference == EnumHelper.GetDescription(MinimumType.自定义保底)) if (dept.MinimumReference == EnumHelper.GetDescription(MinimumType.自定义保底))
minimumReference = GetCustomMinimumName(dept.Department); minimumReference = GetCustomMinimumName(dept.Department, unitType.ToString());
var minimum = baiscnormList.FirstOrDefault(t => t.PositionName == minimumReference); var minimum = baiscnormList.FirstOrDefault(t => t.PositionName == minimumReference);
if (minimum != null) if (minimum != null)
...@@ -468,7 +468,7 @@ public void ComputeCustomMinimum(PerExcel excel, List<PerSheet> perSheet, List<r ...@@ -468,7 +468,7 @@ public void ComputeCustomMinimum(PerExcel excel, List<PerSheet> perSheet, List<r
var baiscnorm = new res_baiscnorm var baiscnorm = new res_baiscnorm
{ {
AllotID = allotId, AllotID = allotId,
PositionName = GetCustomMinimumName(guaranteeGroup.Target), PositionName = GetCustomMinimumName(guaranteeGroup.Target, unitType.ToString()),
TotelNumber = count, TotelNumber = count,
TotelValue = totalValue, TotelValue = totalValue,
AvgValue = count == 0 ? 0 : totalValue / count AvgValue = count == 0 ? 0 : totalValue / count
...@@ -482,9 +482,9 @@ public void ComputeCustomMinimum(PerExcel excel, List<PerSheet> perSheet, List<r ...@@ -482,9 +482,9 @@ public void ComputeCustomMinimum(PerExcel excel, List<PerSheet> perSheet, List<r
/// </summary> /// </summary>
/// <param name="department"></param> /// <param name="department"></param>
/// <returns></returns> /// <returns></returns>
private string GetCustomMinimumName(string department) private string GetCustomMinimumName(string department, string unitType)
{ {
return $"{EnumHelper.GetDescription(MinimumType.自定义保底)}({department})"; return $"{EnumHelper.GetDescription(MinimumType.自定义保底)}({unitType}{department})";
} }
/// <summary> /// <summary>
......
...@@ -210,8 +210,8 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a ...@@ -210,8 +210,8 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
OtherPerfor = empolyee.OtherPerfor, OtherPerfor = empolyee.OtherPerfor,
Number = number, Number = number,
PerforTotal = realGiveFee, PerforTotal = perforTotal,
Avg = realAvg, Avg = avg,
Efficiency = avg * (accountbasic.DoctorEffic ?? 1), Efficiency = avg * (accountbasic.DoctorEffic ?? 1),
Scale = perforTotal * (accountbasic.DoctorScale ?? 1), Scale = perforTotal * (accountbasic.DoctorScale ?? 1),
Adjust = empolyee.Adjust, Adjust = empolyee.Adjust,
......
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