Commit 0f443e90 by liuyang

修复生产计划完工进度百分比

parent 9d51eb09
......@@ -677,7 +677,7 @@ public class HGSCTools {
.reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal quantitySum = list.stream().map(HGSC005A::getQuantity)
.reduce(BigDecimal.ZERO, BigDecimal::add);
return finishQuantitySum.divide(quantitySum, 3, RoundingMode.HALF_UP);
return finishQuantitySum.divide(quantitySum, 3, RoundingMode.HALF_UP).multiply(BigDecimal.valueOf(100));
})));
hgsc005List.forEach(hgsc005 -> {
hgsc005.setFinishRate(MapUtils.isNotEmpty(finishRateMap)
......
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