取整

parent 92688ef6
...@@ -225,7 +225,7 @@ public List<res_baiscnorm> AllComputeAvg(int allotId, List<ComputeResponse> list ...@@ -225,7 +225,7 @@ public List<res_baiscnorm> AllComputeAvg(int allotId, List<ComputeResponse> list
PositionName = item, PositionName = item,
TotelNumber = count, TotelNumber = count,
TotelValue = sumfee, TotelValue = sumfee,
AvgValue = count == 0 ? 0 : sumfee / count, AvgValue = count == 0 ? 0 : Math.Round(sumfee / count ?? 0),
}); });
} }
return avgs; return avgs;
......
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