|  | @@ -3,6 +3,7 @@ package org.jeecg.modules.splt.service.impl;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
	
		
			
				|  |  | +import org.jeecg.common.exception.JeecgBootException;
 | 
	
		
			
				|  |  |  import org.jeecg.common.util.oConvertUtils;
 | 
	
		
			
				|  |  |  import org.jeecg.modules.documents.letterDeposit.entity.SyLetterDepositItem;
 | 
	
		
			
				|  |  |  import org.jeecg.modules.documents.shippingDetails.entity.SyShippingDetailsItem;
 | 
	
	
		
			
				|  | @@ -217,6 +218,13 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	@Transactional
 | 
	
		
			
				|  |  |  	public void delMain(String id) {
 | 
	
		
			
				|  |  | +		SyPackingListTailoring syPackingListTailoring=syPackingListTailoringMapper.selectById(id);
 | 
	
		
			
				|  |  | +		if (syPackingListTailoring==null){
 | 
	
		
			
				|  |  | +			throw new JeecgBootException("未找到此id!");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		if(syPackingListTailoring.getIsReference()==1){
 | 
	
		
			
				|  |  | +			throw new JeecgBootException("已被托书参照,禁止删除!");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  		syPackingListTailoringItemMapper.deleteByMainId(id);
 | 
	
		
			
				|  |  |  		syPackingListTailoringMapper.deleteByMainId(id);
 | 
	
		
			
				|  |  |  		QueryWrapper queryWrapper=new QueryWrapper();
 |