维修管理优化
This commit is contained in:
parent
8b02d0d3ec
commit
7b9b0eac65
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue