|  |  | @ -1039,7 +1039,7 @@ public class IoCodeTempController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             } else if (bussinessTypeEntity.getSpaceOut() == ConstantStatus.SPACE_OUT_CODE) { |  |  |  |             } else if (bussinessTypeEntity.getSpaceOut() == ConstantStatus.SPACE_OUT_CODE) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 //按指定货位出库
 |  |  |  |                 //按指定货位出库
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (StrUtil.isEmpty(codeTempEntity.getWarehouseCode())) { |  |  |  |                 if (StrUtil.isEmpty(codeTempEntity.getWarehouseCode())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     List<InvPlaceDetailResponse> invProductDetailEntities = invProductDetailService.findByGroupCode(codeTempEntity.getInvCode(), codeTempEntity.getCode()); |  |  |  |                     List<InvPlaceDetailResponse> invProductDetailEntities = invProductDetailService.findByGroupCode(codeTempEntity.getInvCode(), codeTempEntity.getCode(),true); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     if (CollUtil.isNotEmpty(invProductDetailEntities) && invProductDetailEntities.size() > 1) { |  |  |  |                     if (CollUtil.isNotEmpty(invProductDetailEntities) && invProductDetailEntities.size() > 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         BaseResponse baseResponse = ResultVOUtils.error(511, "存在多个货位,请指定当前货位!"); |  |  |  |                         BaseResponse baseResponse = ResultVOUtils.error(511, "存在多个货位,请指定当前货位!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         baseResponse.setData(invProductDetailEntities); |  |  |  |                         baseResponse.setData(invProductDetailEntities); | 
			
		
	
	
		
		
			
				
					|  |  | @ -1061,9 +1061,16 @@ public class IoCodeTempController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return ResultVOUtils.error(500, "当前库存不足"); |  |  |  |                 return ResultVOUtils.error(500, "当前库存不足"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } else { |  |  |  |             } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 //查询此单据已扫描的条码数量
 |  |  |  |                 //查询此单据已扫描的条码数量
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 int exitCount = IntUtil.value(codeTempService.selectExitCount(codeTempEntity.getOrderId(), codeTempEntity.getBatchNo(), codeTempEntity.getRelId(), codeTempEntity.getSupId())); |  |  |  |                 if (bussinessTypeEntity.getSpaceOut() == ConstantStatus.SPACE_OUT_CODE){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 if (codeTempEntity.getMyReCount() > count) { |  |  |  |                     int exitCount = IntUtil.value(codeTempService.selectExitCount(codeTempEntity.getOrderId(), codeTempEntity.getCode())); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     return ResultVOUtils.error(500, "当前库存不足"); |  |  |  |                     if ((codeTempEntity.getMyReCount() + exitCount) > count) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         return ResultVOUtils.error(500, "当前库存不足"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     int exitCount = IntUtil.value(codeTempService.selectExitCount(codeTempEntity.getOrderId(), codeTempEntity.getBatchNo(), codeTempEntity.getRelId(), codeTempEntity.getSupId())); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if ((codeTempEntity.getMyReCount() + exitCount) > count) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         return ResultVOUtils.error(500, "当前库存不足"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -1214,6 +1221,7 @@ public class IoCodeTempController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(codeTempEntity.getBatchNo()) && codeTempEntity.getBatchNo().length() > 20) { |  |  |  |         if (StrUtil.isNotEmpty(codeTempEntity.getBatchNo()) && codeTempEntity.getBatchNo().length() > 20) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "无效条码!批次号超出最大范围"); |  |  |  |             return ResultVOUtils.error(500, "无效条码!批次号超出最大范围"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isBlank(codeTempEntity.getSerialNo()) && StrUtil.isBlank(codeTempEntity.getBatchNo())) { |  |  |  |         if (StrUtil.isBlank(codeTempEntity.getSerialNo()) && StrUtil.isBlank(codeTempEntity.getBatchNo())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "批次号不能为空!"); |  |  |  |             return ResultVOUtils.error(500, "批次号不能为空!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |