mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 09:11:52 +08:00
支付 app、商户,删除时,需要校验关联数据
This commit is contained in:
parent
e8368bb7fd
commit
054c237b1f
@ -61,6 +61,7 @@ public class PayAppServiceImpl implements PayAppService {
|
||||
public void deleteApp(Long id) {
|
||||
// 校验存在
|
||||
this.validateAppExists(id);
|
||||
// TODO aquan:校验是否存在进行中的支付单、退款单,如果是,则不允许删除。
|
||||
// 删除
|
||||
appMapper.deleteById(id);
|
||||
}
|
||||
|
@ -57,6 +57,7 @@ public class PayMerchantServiceImpl implements PayMerchantService {
|
||||
public void deleteMerchant(Long id) {
|
||||
// 校验存在
|
||||
this.validateMerchantExists(id);
|
||||
// TODO @aquan:需要校验 PayApp 是否都在。如果在的情况下,不允许删除
|
||||
// 删除
|
||||
merchantMapper.deleteById(id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user