|  |  |  | @ -112,10 +112,7 @@ public class ThrDeptController { | 
			
		
	
		
			
				
					|  |  |  |  |         filterThrDeptRequest.setThirdSysFk(thrDeptEntity.getThirdSysFk()); | 
			
		
	
		
			
				
					|  |  |  |  |         filterThrDeptRequest.setStatus(thrDeptEntity.getStatus()); | 
			
		
	
		
			
				
					|  |  |  |  |         List<ThrDeptEntity> thrDeptEntities = thrDeptService.filterThrInvWarehouse(filterThrDeptRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         filterThrDeptRequest.setCode(thrDeptEntity.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |         filterThrDeptRequest.setName(null); | 
			
		
	
		
			
				
					|  |  |  |  |         List<ThrDeptEntity> thrDeptEntities1= thrDeptService.filterThrInvWarehouse(filterThrDeptRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         if(thrDeptEntities.size()==0 && thrDeptEntities1.size()==0){ | 
			
		
	
		
			
				
					|  |  |  |  |         if(thrDeptEntities.size()==0 ){ | 
			
		
	
		
			
				
					|  |  |  |  |             thrDeptEntity.setPid(null); // 不能修改父级 pid
 | 
			
		
	
		
			
				
					|  |  |  |  |             thrDeptEntity.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |             boolean b = thrDeptService.updateInvWarehouse(thrDeptEntity); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |