维修管理优化

This commit is contained in:
syruan 2024-11-18 18:49:22 +08:00
parent 8b02d0d3ec
commit 7b9b0eac65
1 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ public class RepairServiceImpl implements RepairService {
// ---------------校验维修数量-----------------
// 统计已维修数量 + 本次维修数量
int repairNum = OptionalInt.of(details.getRepairedNum()).orElse(0) + bean.getNumberScrapRepairPartList().get(0).getRepairNum();
int repairNum = OptionalInt.of(details.getRepairedNum()).orElse(0) + bean.getNumberInRepairPartList().get(0).getRepairNum();
// 统计报废数量 + 维修合计数量
int num = repairNum + details.getScrapNum();
if (num > details.getRepairNum()) {
@ -344,7 +344,7 @@ public class RepairServiceImpl implements RepairService {
// ---------------校验维修数量-----------------
// 统计已维修数量 + 本次维修数量
int repairNum = OptionalInt.of(details.getRepairedNum()).orElse(0) + bean.getNumberScrapRepairPartList().get(0).getRepairNum();
int repairNum = OptionalInt.of(details.getRepairedNum()).orElse(0) + bean.getNumberOutRepairPartList().get(0).getRepairNum();
// 统计报废数量 + 维修合计数量
int num = repairNum + details.getScrapNum();
if (num > details.getRepairNum()) {