diff --git a/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java b/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java index 93d9372..acd6f1a 100644 --- a/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java +++ b/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java @@ -2299,7 +2299,7 @@ public class DailyPlanServiceImpl implements DailyPlanService { if (!"已投用".equals(toolDetailData.getStatus())){ throw new RuntimeException("模具状态不正确,状态应为已投用"); } - if (toolDetailData.getEstUseQty().compareTo(toolDetailData.getActualUseQty()) < 0){ + if (toolDetailData.getEstUseQty().compareTo(toolDetailData.getActualUseQty()) <= 0){ throw new RuntimeException("模具使用寿命超过预计寿命!"); } // 查询生产订单 @@ -2379,7 +2379,7 @@ public class DailyPlanServiceImpl implements DailyPlanService { throw new RuntimeException("模具不在库中,无法出库。"); } - if (toolDetailData.getEstUseQty().compareTo(toolDetailData.getActualUseQty()) < 0){ + if (toolDetailData.getEstUseQty().compareTo(toolDetailData.getActualUseQty()) <= 0){ throw new RuntimeException("模具使用寿命超过预计寿命!"); } // 查询生产订单 @@ -2444,7 +2444,7 @@ public class DailyPlanServiceImpl implements DailyPlanService { if (!"生产使用中".equals(toolDetailData.getUseStatus())){ throw new RuntimeException("模具使用状态不正确,当前状态:"+toolDetailData.getUseStatus()); } - if (toolDetailData.getEstUseQty().compareTo(toolDetailData.getActualUseQty()) < 0){ + if (toolDetailData.getEstUseQty().compareTo(toolDetailData.getActualUseQty()) <= 0){ throw new RuntimeException("模具使用寿命超过预计寿命!"); } // 查询生产订单