|  |  |  | @ -68,8 +68,20 @@ public class IoOrderMutiController { | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse checkUdi(@RequestBody IoOrderMutiEntity ioOrderMutiEntity) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (StrUtil.isNotBlank(ioOrderMutiEntity.getUdiCode())) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             //查询码是否包含序列号
 | 
			
		
	
		
			
				
					|  |  |  |  |             UdiEntity udiEntity = FilterUdiUtils.getUdi(ioOrderMutiEntity.getUdiCode()); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             //查询物资信息
 | 
			
		
	
		
			
				
					|  |  |  |  |             UdiProductEntity udiProductEntity = udiProductService.selectUdiByName(udiEntity.getUdi()); | 
			
		
	
		
			
				
					|  |  |  |  |             if(udiProductEntity.getUseMuti()==null || udiProductEntity.getUseMuti()==false){ | 
			
		
	
		
			
				
					|  |  |  |  |                 return ResultVOUtils.error(999, "该产品不允许多次出库!"); | 
			
		
	
		
			
				
					|  |  |  |  |             }else{ | 
			
		
	
		
			
				
					|  |  |  |  |                 if(udiProductEntity.getZdcfsycs() == null || udiProductEntity.getZdcfsycs().equals(0)){ | 
			
		
	
		
			
				
					|  |  |  |  |                     return ResultVOUtils.error(999, "该产品库存不足!"); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (StrUtil.isNotBlank(udiEntity.getSerialNo())) { | 
			
		
	
		
			
				
					|  |  |  |  |                 //包含
 | 
			
		
	
		
			
				
					|  |  |  |  |                 QueryWrapper<IoOrderMutiEntity> ew = new QueryWrapper<>(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -82,8 +94,6 @@ public class IoOrderMutiController { | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     return ResultVOUtils.success(ioOrderMutiEntityOne.getId()); | 
			
		
	
		
			
				
					|  |  |  |  |                 } else { | 
			
		
	
		
			
				
					|  |  |  |  |                     //查询物资信息
 | 
			
		
	
		
			
				
					|  |  |  |  |                     UdiProductEntity udiProductEntity = udiProductService.selectUdiByName(udiEntity.getUdi()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne = new IoOrderMutiEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setRelIdFk(udiProductEntity.getRelId()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -92,11 +102,11 @@ public class IoOrderMutiController { | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setBatchNo(udiEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setExpireDate(udiEntity.getExpireDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setProduceDate(udiEntity.getProduceDate()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setTotalCount(20); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setTotalCount(udiProductEntity.getZdcfsycs()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setStatus(0); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setCreateUser(customerService.getUserId() + ""); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setUseCount(0); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setReCount(20); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setReCount(udiProductEntity.getZdcfsycs()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setCreateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |                     ioOrderMutiEntityOne.setNameCode(udiProductEntity.getNameCode()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -143,6 +153,13 @@ public class IoOrderMutiController { | 
			
		
	
		
			
				
					|  |  |  |  |             UdiEntity udiEntity = FilterUdiUtils.getUdi(ioOrderMutiEntity.getUdiCode()); | 
			
		
	
		
			
				
					|  |  |  |  |             //查询物资信息
 | 
			
		
	
		
			
				
					|  |  |  |  |             UdiProductEntity udiProductEntity = udiProductService.selectUdiByName(udiEntity.getUdi()); | 
			
		
	
		
			
				
					|  |  |  |  |             if(udiProductEntity.getUseMuti()==null || udiProductEntity.getUseMuti()==false){ | 
			
		
	
		
			
				
					|  |  |  |  |                 return ResultVOUtils.error(999, "该产品不允许多次出库!"); | 
			
		
	
		
			
				
					|  |  |  |  |             }else{ | 
			
		
	
		
			
				
					|  |  |  |  |                 if(udiProductEntity.getZdcfsycs() == null || udiProductEntity.getZdcfsycs().equals(0)){ | 
			
		
	
		
			
				
					|  |  |  |  |                     return ResultVOUtils.error(999, "该产品库存不足!"); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             IoOrderMutiEntity ioOrderMutiEntity1 = new IoOrderMutiEntity(); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -152,10 +169,10 @@ public class IoOrderMutiController { | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setBatchNo(udiEntity.getBatchNo()); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setExpireDate(udiEntity.getExpireDate()); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setProduceDate(udiEntity.getProduceDate()); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setTotalCount(20); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setTotalCount(udiProductEntity.getZdcfsycs()); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setStatus(0); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setUseCount(0); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setReCount(20); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setReCount(udiProductEntity.getZdcfsycs()); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setCreateUser(customerService.getUserId() + ""); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setCreateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |             ioOrderMutiEntity1.setUpdateTime(new Date()); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |