From 054c237b1f65dd41bd6de0e712e8d8daeda65d95 Mon Sep 17 00:00:00 2001 From: "zhijiantianya@gmail.com" Date: Mon, 27 Dec 2021 11:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=20app=E3=80=81=E5=95=86?= =?UTF-8?q?=E6=88=B7=EF=BC=8C=E5=88=A0=E9=99=A4=E6=97=B6=EF=BC=8C=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=A0=A1=E9=AA=8C=E5=85=B3=E8=81=94=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/pay/service/app/impl/PayAppServiceImpl.java | 1 + .../pay/service/merchant/impl/PayMerchantServiceImpl.java | 1 + 2 files changed, 2 insertions(+) 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); }