|  |  | @ -92,25 +92,26 @@ public class IoOrderUtilsService { | 
			
		
	
		
		
			
				
					
					|  |  |  |             } else { |  |  |  |             } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioCodeTempEntity1.setRelId(udiRlSupEntityList.get(0).getId()); |  |  |  |                 ioCodeTempEntity1.setRelId(udiRlSupEntityList.get(0).getId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 map.put(ioCodeTempEntity.getRelId() + "", udiRlSupEntityList.get(0)); |  |  |  |                 map.put(ioCodeTempEntity.getRelId() + "", udiRlSupEntityList.get(0)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setOrderId(billNO); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setCode(ioCodeTempEntity.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setMainAction(ioCodeTempEntity.getMainAction()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setAction(platformLinkRespons.getTargetAction()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setNameCode(ioCodeTempEntity.getNameCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setBatchNo(ioCodeTempEntity.getBatchNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setProduceDate(ioCodeTempEntity.getProduceDate()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setExpireDate(ioCodeTempEntity.getExpireDate()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setSerialNo(ioCodeTempEntity.getSerialNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setPackageLevel(ioCodeTempEntity.getPackageLevel()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setSupId(ioCodeTempEntity.getSupId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setCount(ioCodeTempEntity.getCount()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setReCount(ioCodeTempEntity.getReCount()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setDeptCode(platformLinkRespons.getInvCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setInvCode(platformLinkRespons.getInvSubCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntity1.setCreateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioCodeTempEntities.add(ioCodeTempEntity1); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setOrderId(billNO); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setCode(ioCodeTempEntity.getCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setMainAction(ioCodeTempEntity.getMainAction()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setAction(platformLinkRespons.getTargetAction()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setNameCode(ioCodeTempEntity.getNameCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setBatchNo(ioCodeTempEntity.getBatchNo()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setProduceDate(ioCodeTempEntity.getProduceDate()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setExpireDate(ioCodeTempEntity.getExpireDate()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setSerialNo(ioCodeTempEntity.getSerialNo()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setPackageLevel(ioCodeTempEntity.getPackageLevel()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setSupId(ioCodeTempEntity.getSupId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setCount(ioCodeTempEntity.getCount()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setReCount(ioCodeTempEntity.getReCount()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setDeptCode(platformLinkRespons.getInvCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setInvCode(platformLinkRespons.getInvSubCode()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setUpdateTime(new Date()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntity1.setCreateTime(new Date()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioCodeTempEntities.add(ioCodeTempEntity1); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         //扫码单据生成
 |  |  |  |         //扫码单据生成
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -127,6 +128,7 @@ public class IoOrderUtilsService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderDetailCodeEntity1.setBindRlFk(null); |  |  |  |                 ioOrderDetailCodeEntity1.setBindRlFk(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderDetailCodeEntity1.setUuidFk(null); |  |  |  |                 ioOrderDetailCodeEntity1.setUuidFk(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             ioOrderDetailCodeEntity1.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioOrderDetailCodeEntity1.setNameCode(ioOrderDetailCodeEntity.getNameCode()); |  |  |  |             ioOrderDetailCodeEntity1.setNameCode(ioOrderDetailCodeEntity.getNameCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioOrderDetailCodeEntity1.setBatchNo(ioOrderDetailCodeEntity.getBatchNo()); |  |  |  |             ioOrderDetailCodeEntity1.setBatchNo(ioOrderDetailCodeEntity.getBatchNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioOrderDetailCodeEntity1.setProductDate(ioOrderDetailCodeEntity.getProductDate()); |  |  |  |             ioOrderDetailCodeEntity1.setProductDate(ioOrderDetailCodeEntity.getProductDate()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -163,7 +165,7 @@ public class IoOrderUtilsService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ioOrderDetailBizEntity1.setBindRlFk(null); |  |  |  |                     ioOrderDetailBizEntity1.setBindRlFk(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ioOrderDetailBizEntity1.setUuidFk(null); |  |  |  |                     ioOrderDetailBizEntity1.setUuidFk(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |                 ioOrderDetailBizEntity1.setId(IdUtil.getSnowflakeNextId()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderDetailBizEntity1.setNameCode(ioOrderDetailBizEntity.getNameCode()); |  |  |  |                 ioOrderDetailBizEntity1.setNameCode(ioOrderDetailBizEntity.getNameCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderDetailBizEntity1.setBatchNo(ioOrderDetailBizEntity.getBatchNo()); |  |  |  |                 ioOrderDetailBizEntity1.setBatchNo(ioOrderDetailBizEntity.getBatchNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderDetailBizEntity1.setProductDate(ioOrderDetailBizEntity.getProductDate()); |  |  |  |                 ioOrderDetailBizEntity1.setProductDate(ioOrderDetailBizEntity.getProductDate()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -234,6 +236,7 @@ public class IoOrderUtilsService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ioOrderInvoiceEntity1.setBindRlFk(null); |  |  |  |                     ioOrderInvoiceEntity1.setBindRlFk(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 ioOrderInvoiceEntity1.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderInvoiceEntity1.setBatchNo(ioOrderInvoiceEntity.getBatchNo()); |  |  |  |                 ioOrderInvoiceEntity1.setBatchNo(ioOrderInvoiceEntity.getBatchNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderInvoiceEntity1.setProductDate(ioOrderInvoiceEntity.getProductDate()); |  |  |  |                 ioOrderInvoiceEntity1.setProductDate(ioOrderInvoiceEntity.getProductDate()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ioOrderInvoiceEntity1.setExpireDate(ioOrderInvoiceEntity.getExpireDate()); |  |  |  |                 ioOrderInvoiceEntity1.setExpireDate(ioOrderInvoiceEntity.getExpireDate()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -260,6 +263,7 @@ public class IoOrderUtilsService { | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderEntity1.setFromCorp(ioOrderEntity.getFromCorp()); |  |  |  |         ioOrderEntity1.setFromCorp(ioOrderEntity.getFromCorp()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderEntity1.setFromDeptCode(ioOrderEntity.getFromDeptCode()); |  |  |  |         ioOrderEntity1.setFromDeptCode(ioOrderEntity.getFromDeptCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderEntity1.setFromInvCode(ioOrderEntity.getFromInvCode()); |  |  |  |         ioOrderEntity1.setFromInvCode(ioOrderEntity.getFromInvCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         ioOrderEntity1.setOrderType(3); | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderEntity1.setFromType(1); |  |  |  |         ioOrderEntity1.setFromType(1); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!checkUdi) { |  |  |  |         if (!checkUdi) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             ioOrderEntity1.setStatus(1); |  |  |  |             ioOrderEntity1.setStatus(1); | 
			
		
	
	
		
		
			
				
					|  |  | @ -279,11 +283,11 @@ public class IoOrderUtilsService { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         //结果插入
 |  |  |  |         //结果插入
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderService.insertOrder(ioOrderEntity1); |  |  |  |         ioOrderService.insertOrder(ioOrderEntity1); | 
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderDetailBizDao.insertIgnoreBatchs(ioOrderDetailBizEntities); |  |  |  |         ioOrderDetailBizDao.insertBatch(ioOrderDetailBizEntities); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderDetailCodeDao.insertIgnoreBatchs(ioOrderDetailCodeEntities); |  |  |  |         ioOrderDetailCodeDao.insertBatch(ioOrderDetailCodeEntities); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ioCodeTempDao.insertIgnoreBatchs(ioCodeTempEntities); |  |  |  |         ioCodeTempDao.insertBatch(ioCodeTempEntities); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderDetailResultDao.insertIgnoreBatchs(ioOrderDetailResultEntities); |  |  |  |         ioOrderDetailResultDao.insertBatch(ioOrderDetailResultEntities); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ioOrderInvoiceMapper.insertIgnoreBatchs(ioOrderInvoiceEntities); |  |  |  |         ioOrderInvoiceMapper.insertBatch(ioOrderInvoiceEntities); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         return true; |  |  |  |         return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |