|
|
@@ -2802,15 +2802,15 @@ public class GxtRepairOrderServiceImpl implements IGxtRepairOrderService
|
|
|
// 逐条处理月度统计数据(保持时间准确性)
|
|
|
for (GxtOrderScoreDetail detail : scoreDetails) {
|
|
|
if (detail.getStopScore() != null && detail.getStopScore().compareTo(BigDecimal.ZERO) < 0) {
|
|
|
- // 使用每条记录的实际创建时间
|
|
|
- updateMonthlyScoreDataForStopScore(repairOrder, detail.getStopScore(), detail.getCreateTime());
|
|
|
-
|
|
|
// 为这条记录添加个人明细
|
|
|
int detailPersonCount = allPersons.size();
|
|
|
BigDecimal detailPerPersonDeduction = detail.getStopScore().divide(new BigDecimal(detailPersonCount), 10, BigDecimal.ROUND_HALF_UP);
|
|
|
if (detailPerPersonDeduction.scale() > 6) {
|
|
|
detailPerPersonDeduction = detailPerPersonDeduction.setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
}
|
|
|
+
|
|
|
+ // 使用每条记录的实际创建时间
|
|
|
+ updateMonthlyScoreDataForStopScore(repairOrder, detailPerPersonDeduction, detail.getCreateTime());
|
|
|
addOrderScoreDetailsForStopScoreRepair(repairOrder, allPersons, detailPerPersonDeduction, 3, detail.getCreateTime());
|
|
|
}
|
|
|
}
|