|  |  |  | @ -79,21 +79,21 @@ public class InvSubWarehouseController { | 
			
		
	
		
			
				
					|  |  |  |  |         AuthAdmin authAdmin = customerService.getUserBean(); | 
			
		
	
		
			
				
					|  |  |  |  |         if (StrUtil.isNotEmpty(filterInvWarehouseRequest.getPcode())) { | 
			
		
	
		
			
				
					|  |  |  |  |             if (filterInvWarehouseRequest.getFilter() == null || filterInvWarehouseRequest.getFilter() == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (authAdmin.getCustomerId()==110) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (authAdmin.getCustomerId() == 110) { | 
			
		
	
		
			
				
					|  |  |  |  |                     filterInvWarehouseRequest.setUserId(authAdmin.getId().intValue()); | 
			
		
	
		
			
				
					|  |  |  |  |                 }else { | 
			
		
	
		
			
				
					|  |  |  |  |                 } else { | 
			
		
	
		
			
				
					|  |  |  |  |                     filterInvWarehouseRequest.setSpUse(true); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } else{ | 
			
		
	
		
			
				
					|  |  |  |  |             if(filterInvWarehouseRequest.getFilter()==3 && filterInvWarehouseRequest.getFilter()!=null){ | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |             if (filterInvWarehouseRequest.getFilter() == 3 && filterInvWarehouseRequest.getFilter() != null) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 if (authAdmin.getCustomerId()==110) | 
			
		
	
		
			
				
					|  |  |  |  |                 if (authAdmin.getCustomerId() == 110) | 
			
		
	
		
			
				
					|  |  |  |  |                     filterInvWarehouseRequest.setUserId(authAdmin.getId().intValue()); | 
			
		
	
		
			
				
					|  |  |  |  |                 else { | 
			
		
	
		
			
				
					|  |  |  |  |                     filterInvWarehouseRequest.setSpUse(true); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }else{ | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 //走这边表示单据选择的是往来单位里面调出调入的库
 | 
			
		
	
		
			
				
					|  |  |  |  |                 //判断单据类型是1就是设置单据需要需要查询除自己以外的分库
 | 
			
		
	
		
			
				
					|  |  |  |  |                 SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("corp_innor_inv"); | 
			
		
	
	
		
			
				
					|  |  |  | @ -102,13 +102,13 @@ public class InvSubWarehouseController { | 
			
		
	
		
			
				
					|  |  |  |  |                     // 查询总库信息
 | 
			
		
	
		
			
				
					|  |  |  |  |                     InvSubWarehouseEntity invSubWarehouseEntity = invSubWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                     //查询仓库信息
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if(invSubWarehouseEntity!=null){ | 
			
		
	
		
			
				
					|  |  |  |  |                     if (invSubWarehouseEntity != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         InvWarehouseEntity invWarehouseEntity = invWarehouseService.selectByCodeAll(invSubWarehouseEntity.getParentId()); | 
			
		
	
		
			
				
					|  |  |  |  |                         filterInvWarehouseRequest.setSuperiorCode(invWarehouseEntity.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |                         filterInvWarehouseRequest.setSuperiorPcode(invWarehouseEntity.getPcode()); | 
			
		
	
		
			
				
					|  |  |  |  |                         filterInvWarehouseRequest.setCode(null); | 
			
		
	
		
			
				
					|  |  |  |  |                     }else { | 
			
		
	
		
			
				
					|  |  |  |  |                         return  ResultVOUtils.error(999,"分库编号为空!"); | 
			
		
	
		
			
				
					|  |  |  |  |                     } else { | 
			
		
	
		
			
				
					|  |  |  |  |                         return ResultVOUtils.error(999, "分库编号为空!"); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -134,7 +134,7 @@ public class InvSubWarehouseController { | 
			
		
	
		
			
				
					|  |  |  |  | //            return ResultVOUtils.error(500, "用户或仓库不能未空!");
 | 
			
		
	
		
			
				
					|  |  |  |  | //        }
 | 
			
		
	
		
			
				
					|  |  |  |  |         AuthAdmin authAdmin = customerService.getUserBean(); | 
			
		
	
		
			
				
					|  |  |  |  |         InvSubWarehouseEntity invSubWarehouseEntity=invSubWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |         InvSubWarehouseEntity invSubWarehouseEntity = invSubWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); | 
			
		
	
		
			
				
					|  |  |  |  |         filterInvWarehouseRequest.setSubordinateCode(invSubWarehouseEntity.getParentId()); | 
			
		
	
		
			
				
					|  |  |  |  |         filterInvWarehouseRequest.setCode(null); | 
			
		
	
		
			
				
					|  |  |  |  |         List<InvSubWarehouseEntity> invSubWarehouseEntities = invSubWarehouseService.filterGroupInvSubDown(filterInvWarehouseRequest); | 
			
		
	
	
		
			
				
					|  |  |  | @ -289,4 +289,17 @@ public class InvSubWarehouseController { | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success(); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |  |      * 查询分仓列表 | 
			
		
	
		
			
				
					|  |  |  |  |      * | 
			
		
	
		
			
				
					|  |  |  |  |      * @param filterInvWarehouseRequest | 
			
		
	
		
			
				
					|  |  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
			
				
					|  |  |  |  |     @GetMapping("/spms/sub/inv/warehouse/filterSubInvList") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse filterSubInvList(FilterInvWarehouseRequest filterInvWarehouseRequest) { | 
			
		
	
		
			
				
					|  |  |  |  |         List<InvSubWarehouseResponse> responses = invSubWarehouseService.filterSubInvList(filterInvWarehouseRequest); | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success(responses); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |