|  |  | @ -107,11 +107,15 @@ public class ThrDeptController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             thrInvWarehouseService.updateThrInvWarehouse(thrInvWarehouseEntity); |  |  |  |             thrInvWarehouseService.updateThrInvWarehouse(thrInvWarehouseEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |             //判断部门是否存在
 |  |  |  |             //判断部门是否存在
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterThrDeptRequest.setCode(thrDeptEntity.getCode()); |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         filterThrDeptRequest.setName(thrDeptEntity.getName()); |  |  |  |         filterThrDeptRequest.setName(thrDeptEntity.getName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterThrDeptRequest.setThirdSysFk(thrDeptEntity.getThirdSysFk()); |  |  |  |         filterThrDeptRequest.setThirdSysFk(thrDeptEntity.getThirdSysFk()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         filterThrDeptRequest.setStatus(thrDeptEntity.getStatus()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         List<ThrDeptEntity> thrDeptEntities = thrDeptService.filterThrInvWarehouse(filterThrDeptRequest); |  |  |  |         List<ThrDeptEntity> thrDeptEntities = thrDeptService.filterThrInvWarehouse(filterThrDeptRequest); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(thrDeptEntities.size()==0){ |  |  |  |         filterThrDeptRequest.setCode(thrDeptEntity.getCode()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         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); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |