|  |  | @ -201,67 +201,10 @@ public class InvWarehouseController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @AuthRuleAnnotation("") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     @GetMapping("spms/sub/inv/warehouse/findByInv") |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse findByInv(FilterInvWarehouseRequest filterInvWarehouseRequest) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | //        if (StrUtil.isEmpty(filterInvWarehouseRequest.getPcode()) || filterInvWarehouseRequest.getUserId() == null) {
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | //            return ResultVOUtils.error(500, "用户或仓库不能未空!");
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | //        }
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         AuthAdmin authAdmin = customerService.getUserBean(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(filterInvWarehouseRequest.getPcode())) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (filterInvWarehouseRequest.getFilter() == null || filterInvWarehouseRequest.getFilter() == 1 || filterInvWarehouseRequest.getFilter() == 2) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (authAdmin.getCustomerId() == 110) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     filterInvWarehouseRequest.setUserId(authAdmin.getId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     filterInvWarehouseRequest.setSpUse(true); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (filterInvWarehouseRequest.getFilter() != null && filterInvWarehouseRequest.getFilter() == 3) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 filterInvWarehouseRequest.setUserId(authAdmin.getId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 //走这边表示单据选择的是往来单位里面调出调入的库
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 //判断单据类型是1就是设置单据需要需要查询除自己以外的分库
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("corp_innor_inv"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (systemParamConfigEntity.getParamValue().equals("0")) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //不允许调拨
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     // 查询总库信息
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     InvWarehouseEntity invWarehouseEntity = invWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //查询仓库信息
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     if (invWarehouseEntity != null) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         DeptEntity deptEntity = deptService.selectByCodeAll(invWarehouseEntity.getParentId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         filterInvWarehouseRequest.setSuperiorCode(deptEntity.getCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         filterInvWarehouseRequest.setSuperiorPcode(deptEntity.getPcode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         filterInvWarehouseRequest.setCode(null); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         return ResultVOUtils.error(999, "分库编号为空!"); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //允许调拨
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     //查询总库信息
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     InvWarehouseEntity invWarehouseEntity = invWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     filterInvWarehouseRequest.setWarehouseCode(invWarehouseEntity.getParentId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     filterInvWarehouseRequest.setCode(null); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         List<InvWarehouseEntity> invSubWarehouseEntities = invWarehouseService.filterGroupInvSub(filterInvWarehouseRequest); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(invSubWarehouseEntities); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     @AuthRuleAnnotation("") |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @GetMapping("spms/sub/inv/warehouse/filterSub") |  |  |  |     @GetMapping("spms/sub/inv/warehouse/filterSub") | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse filterSub(FilterInvWarehouseRequest filterInvWarehouseRequest) { |  |  |  |     public BaseResponse filterSub(FilterInvWarehouseRequest filterInvWarehouseRequest) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | //        if (StrUtil.isEmpty(filterInvWarehouseRequest.getPcode()) || filterInvWarehouseRequest.getUserId() == null) {
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | //            return ResultVOUtils.error(500, "用户或仓库不能未空!");
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | //        }
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         AuthAdmin authAdmin = customerService.getUserBean(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         InvWarehouseEntity invWarehouseEntity = invWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); |  |  |  |         InvWarehouseEntity invWarehouseEntity = invWarehouseService.filterGroupInvSubAndcode(filterInvWarehouseRequest.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterInvWarehouseRequest.setSubordinateCode(invWarehouseEntity.getParentId()); |  |  |  |         filterInvWarehouseRequest.setSubordinateCode(invWarehouseEntity.getParentId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         filterInvWarehouseRequest.setCode(null); |  |  |  |         filterInvWarehouseRequest.setCode(null); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |