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