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("该客户信息已被使用,无法删除"); }