From 9f54530161562707db111bcfee504bc50750fe47 Mon Sep 17 00:00:00 2001 From: yanyan <513352169@qq.com> Date: Mon, 20 Apr 2026 14:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=98=8E=E7=BB=86=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E5=9C=A8=E5=BE=85=E6=8F=90=E4=BA=A4=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=89=8D=E5=8F=AF=E4=BB=A5=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplier/service/impl/PurQuotationServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/xujie/modules/supplier/service/impl/PurQuotationServiceImpl.java b/src/main/java/com/xujie/modules/supplier/service/impl/PurQuotationServiceImpl.java index 8042d30..c485cc8 100644 --- a/src/main/java/com/xujie/modules/supplier/service/impl/PurQuotationServiceImpl.java +++ b/src/main/java/com/xujie/modules/supplier/service/impl/PurQuotationServiceImpl.java @@ -152,6 +152,11 @@ public class PurQuotationServiceImpl implements PurQuotationService { if(model.getId() == null){ return; } + //只有待提交状态才可以删除 + PurQuotationDetail purDetailData = purQuotationDetailMapper.selectById(model.getId()); + if(!Objects.equals("待提交", purDetailData.getStatus())){ + throw new RuntimeException("物料明细只有在待提交状态才可以删除"); + } purQuotationDetailMapper.deleteById(model.getId()); }