From b209ef1fab6f69636e07a54e1dff7bfa6c5384be Mon Sep 17 00:00:00 2001 From: lg Date: Sat, 25 Oct 2025 19:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E9=97=B4=E8=A1=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/dromara/xzd/service/impl/XzdCorrespondentListImp.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/xzd/service/impl/XzdCorrespondentListImp.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/xzd/service/impl/XzdCorrespondentListImp.java index 678d0c35..4d5679f1 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/xzd/service/impl/XzdCorrespondentListImp.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/xzd/service/impl/XzdCorrespondentListImp.java @@ -574,6 +574,8 @@ public class XzdCorrespondentListImp implements IXzdCorrespondentList { XzdCustomerSupplierYyb xzdCustomerSupplierYyb = iXzdCustomerSupplierYybService.getBaseMapper().selectOne(new LambdaQueryWrapper().eq(XzdCustomerSupplierYyb::getCSId, dto)); if (xzdCustomerSupplierYyb == null) { iXzdCustomerSupplierService.getBaseMapper().delete(new LambdaQueryWrapper().eq(XzdCustomerSupplier::getCSId, dto)); + }else { + throw new RuntimeException("该客户信息已被使用,无法删除"); }