中间表数据添加

This commit is contained in:
lg
2025-10-25 19:20:32 +08:00
parent 77e9f4d9a2
commit b209ef1fab

View File

@ -574,6 +574,8 @@ public class XzdCorrespondentListImp implements IXzdCorrespondentList {
XzdCustomerSupplierYyb xzdCustomerSupplierYyb = iXzdCustomerSupplierYybService.getBaseMapper().selectOne(new LambdaQueryWrapper<XzdCustomerSupplierYyb>().eq(XzdCustomerSupplierYyb::getCSId, dto));
if (xzdCustomerSupplierYyb == null) {
iXzdCustomerSupplierService.getBaseMapper().delete(new LambdaQueryWrapper<XzdCustomerSupplier>().eq(XzdCustomerSupplier::getCSId, dto));
}else {
throw new RuntimeException("该客户信息已被使用,无法删除");
}