From 8511ec34121faaa6c7fe6a082492581d15d232ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Wed, 18 Nov 2026 17:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=AF=BF=E5=91=BD=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=20=E9=9C=80=E8=A6=81<=3D0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../production/service/impl/DailyPlanServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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("模具使用寿命超过预计寿命!"); } // 查询生产订单