|  |  | @ -58,47 +58,47 @@ public class IoCodeLostController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("warehouse/inout/saveTabCode") |  |  |  | //    @PostMapping("warehouse/inout/saveTabCode")
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse saveCode(@RequestBody WarehouseEntity codeTempEntity) { |  |  |  | //    public BaseResponse saveCode(@RequestBody WarehouseEntity codeTempEntity) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | //
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(codeTempEntity.getSerialNo()) && codeTempEntity.getSerialNo().length() > 20) { |  |  |  | //        if (StrUtil.isNotEmpty(codeTempEntity.getSerialNo()) && codeTempEntity.getSerialNo().length() > 20) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "无效条码!序列号超出最大范围,不予缓存"); |  |  |  | //            return ResultVOUtils.error(500, "无效条码!序列号超出最大范围,不予缓存");
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | //        }
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | //
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         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, "批次号不能为空!,不予缓存");
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | //        }
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if (StrUtil.isNotEmpty(codeTempEntity.getSerialNo())) { |  |  |  | //        if (StrUtil.isNotEmpty(codeTempEntity.getSerialNo())) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "有序列号不予缓存"); |  |  |  | //            return ResultVOUtils.error(500, "有序列号不予缓存");
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | //        }
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | //
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         IoCodeLostEntity codeLostEntity = codeLostService.findByCode(codeTempEntity.getCode()); |  |  |  | //        IoCodeLostEntity codeLostEntity = codeLostService.findByCode(codeTempEntity.getCode());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         IoCodeLostEntity insertEntity = null; |  |  |  | //        IoCodeLostEntity insertEntity = null;
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if (codeLostEntity == null) { |  |  |  | //        if (codeLostEntity == null) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             insertEntity = new IoCodeLostEntity(); |  |  |  | //            insertEntity = new IoCodeLostEntity();
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             insertEntity.setCreateTime(new Date()); |  |  |  | //            insertEntity.setCreateTime(new Date());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  | //        } else {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             insertEntity = codeLostEntity; |  |  |  | //            insertEntity = codeLostEntity;
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | //        }
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setCode(codeTempEntity.getCode()); |  |  |  | //        insertEntity.setCode(codeTempEntity.getCode());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setBatchNo(codeTempEntity.getBatchNo()); |  |  |  | //        insertEntity.setBatchNo(codeTempEntity.getBatchNo());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setProduceDate(codeTempEntity.getProduceDate()); |  |  |  | //        insertEntity.setProduceDate(codeTempEntity.getProduceDate());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setExpireDate(codeTempEntity.getExpireDate()); |  |  |  | //        insertEntity.setExpireDate(codeTempEntity.getExpireDate());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setSerialNo(codeTempEntity.getSerialNo()); |  |  |  | //        insertEntity.setSerialNo(codeTempEntity.getSerialNo());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setSupId(codeTempEntity.getSupId()); |  |  |  | //        insertEntity.setSupId(codeTempEntity.getSupId());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         insertEntity.setUpdateTime(new Date()); |  |  |  | //        insertEntity.setUpdateTime(new Date());
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | //
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if (codeLostEntity != null) { |  |  |  | //        if (codeLostEntity != null) {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             codeLostService.update(insertEntity); |  |  |  | //            codeLostService.update(insertEntity);
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  | //        } else {
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             codeLostService.insert(insertEntity); |  |  |  | //            codeLostService.insert(insertEntity);
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | //        }
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success("修改成功!"); |  |  |  | //        return ResultVOUtils.success("修改成功!");
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  | //    }
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     //获取验收单据业务详情
 |  |  |  |     //获取验收单据业务详情
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |