diff --git a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/app/impl/PayAppServiceImpl.java b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/app/impl/PayAppServiceImpl.java index 86d6a32f8..4945a82b5 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/app/impl/PayAppServiceImpl.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/app/impl/PayAppServiceImpl.java @@ -61,6 +61,7 @@ public class PayAppServiceImpl implements PayAppService { public void deleteApp(Long id) { // 校验存在 this.validateAppExists(id); + // TODO aquan:校验是否存在进行中的支付单、退款单,如果是,则不允许删除。 // 删除 appMapper.deleteById(id); } diff --git a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/merchant/impl/PayMerchantServiceImpl.java b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/merchant/impl/PayMerchantServiceImpl.java index 932cbdfbd..9f2085854 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/merchant/impl/PayMerchantServiceImpl.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/pay/service/merchant/impl/PayMerchantServiceImpl.java @@ -57,6 +57,7 @@ public class PayMerchantServiceImpl implements PayMerchantService { public void deleteMerchant(Long id) { // 校验存在 this.validateMerchantExists(id); + // TODO @aquan:需要校验 PayApp 是否都在。如果在的情况下,不允许删除 // 删除 merchantMapper.deleteById(id); }