mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	支付 app、商户,删除时,需要校验关联数据
This commit is contained in:
		@@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user