|  |  | @ -263,12 +263,26 @@ public class InvWarehouseController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (invWarehouseEntity.getId() == null) { |  |  |  |         if (invWarehouseEntity.getId() == null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL); |  |  |  |             return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //更新仓库信息
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         boolean b = invWarehouseService.updateInvSubWarehouse(invWarehouseEntity); |  |  |  |         boolean b = invWarehouseService.updateInvSubWarehouse(invWarehouseEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //更新部门信息
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         DeptEntity pEntity = deptService.selectByCode(invWarehouseEntity.getParentId()); |  |  |  |         DeptEntity pEntity = deptService.selectByCode(invWarehouseEntity.getParentId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         pEntity.setUpdateTime(new Date()); |  |  |  |         pEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         deptService.updateInvWarehouse(pEntity); |  |  |  |         deptService.updateInvWarehouse(pEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //更新货位信息
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //查询此仓库绑定的所有货位
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         List<InvSpace> spaceList = invSpaceService.findBySubWarehouseCode(invWarehouseEntity.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (CollUtil.isNotEmpty(spaceList)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             for (InvSpace invSpace : spaceList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 invSpace.setInvStorageCode(invWarehouseEntity.getParentId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 invSpace.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             invSpaceService.batchUpdate(spaceList); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!b) { |  |  |  |         if (!b) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.NOT_NETWORK); |  |  |  |             return ResultVOUtils.error(ResultEnum.NOT_NETWORK); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |