|  |  | @ -107,6 +107,9 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } else if (orderEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { |  |  |  |                         } else if (orderEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                             invPreProductEntity.setInCount(invPreProductEntity.getInCount() + count); |  |  |  |                             invPreProductEntity.setInCount(invPreProductEntity.getInCount() + count); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (erpOrderEntity.getPrice() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             invPreProductEntity.setPrice(erpOrderEntity.getPrice() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |                         invPreInProductService.updateInvProduct(invPreProductEntity); |  |  |  |                         invPreInProductService.updateInvProduct(invPreProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else if (bussinessTypeEntity.isAdvanceType()) {//预入库,则转存预入库
 |  |  |  |                 } else if (bussinessTypeEntity.isAdvanceType()) {//预入库,则转存预入库
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -124,6 +127,10 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } else if (orderEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { |  |  |  |                         } else if (orderEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                             invPreProductEntity.setInCount(invPreProductEntity.getInCount() + count); |  |  |  |                             invPreProductEntity.setInCount(invPreProductEntity.getInCount() + count); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (erpOrderEntity.getPrice() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             invPreProductEntity.setPrice(erpOrderEntity.getPrice() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |                         invPreProductService.updateInvProduct(invPreProductEntity); |  |  |  |                         invPreProductService.updateInvProduct(invPreProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else {        //普通出入库
 |  |  |  |                 } else {        //普通出入库
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -141,6 +148,10 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } else if (orderEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { |  |  |  |                         } else if (orderEntity.getMainAction().equals(ConstantType.TYPE_PUT)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                             invProductEntity.setInCount(invProductEntity.getInCount() + count); |  |  |  |                             invProductEntity.setInCount(invProductEntity.getInCount() + count); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (erpOrderEntity.getPrice() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             invProductEntity.setPrice(erpOrderEntity.getPrice() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |                         invProductService.updateInvProduct(invProductEntity); |  |  |  |                         invProductService.updateInvProduct(invProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -152,6 +163,10 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         if (orderEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { |  |  |  |                         if (orderEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                             preInvEntity.setOutCount(preInvEntity.getOutCount() + count); |  |  |  |                             preInvEntity.setOutCount(preInvEntity.getOutCount() + count); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (erpOrderEntity.getPrice() != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             preInvEntity.setPrice(erpOrderEntity.getPrice() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |                         invPreInProductService.updateInvProduct(preInvEntity); |  |  |  |                         invPreInProductService.updateInvProduct(preInvEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -496,6 +511,7 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |         outOrder.setLocStorageCode(defaultWarehouseEntity.getCode()); |  |  |  |         outOrder.setLocStorageCode(defaultWarehouseEntity.getCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         outOrder.setCreateUser(null); |  |  |  |         outOrder.setCreateUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |         outOrder.setReviewUser(null); |  |  |  |         outOrder.setReviewUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         outOrder.setPreCheck(false); | 
			
		
	
		
		
			
				
					
					|  |  |  |         orderService.insertOrder(outOrder); |  |  |  |         orderService.insertOrder(outOrder); | 
			
		
	
		
		
			
				
					
					|  |  |  |         for (WarehouseEntity warehouseEntity : preOutList) { |  |  |  |         for (WarehouseEntity warehouseEntity : preOutList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             warehouseEntity.setOrderId(outOrder.getId()); |  |  |  |             warehouseEntity.setOrderId(outOrder.getId()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -571,6 +587,7 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setOriginUllageSupNo(orderEntity.getId()); |  |  |  |             outOrder.setOriginUllageSupNo(orderEntity.getId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setCreateUser(null); |  |  |  |             outOrder.setCreateUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setReviewUser(null); |  |  |  |             outOrder.setReviewUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             outOrder.setPreCheck(false); | 
			
		
	
		
		
			
				
					
					|  |  |  |             orderService.insertOrder(outOrder); |  |  |  |             orderService.insertOrder(outOrder); | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (WarehouseEntity warehouseEntity : temps) { |  |  |  |             for (WarehouseEntity warehouseEntity : temps) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 warehouseEntity.setOrderId(outOrder.getId()); |  |  |  |                 warehouseEntity.setOrderId(outOrder.getId()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -614,6 +631,7 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setOriginUllageSupNo(orderEntity.getId()); |  |  |  |             outOrder.setOriginUllageSupNo(orderEntity.getId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setCreateUser(null); |  |  |  |             outOrder.setCreateUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setReviewUser(null); |  |  |  |             outOrder.setReviewUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             outOrder.setPreCheck(false); | 
			
		
	
		
		
			
				
					
					|  |  |  |             orderService.insertOrder(outOrder); |  |  |  |             orderService.insertOrder(outOrder); | 
			
		
	
		
		
			
				
					
					|  |  |  |             warehouseEntity.setOrderId(outOrder.getId()); |  |  |  |             warehouseEntity.setOrderId(outOrder.getId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             warehouseEntity.setId(null); |  |  |  |             warehouseEntity.setId(null); | 
			
		
	
	
		
		
			
				
					|  |  | @ -670,6 +688,7 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setFromCorpId(corpName); |  |  |  |             outOrder.setFromCorpId(corpName); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setFromCorp(temps.get(0).getFromCorp()); |  |  |  |             outOrder.setFromCorp(temps.get(0).getFromCorp()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setCorpOrderId(CustomUtil.getId() + "x"); |  |  |  |             outOrder.setCorpOrderId(CustomUtil.getId() + "x"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             outOrder.setPreCheck(false); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setLocStorageCode(orderEntity.getLocStorageCode()); |  |  |  |             outOrder.setLocStorageCode(orderEntity.getLocStorageCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("additional_auto_submit"); |  |  |  |             SystemParamConfigEntity systemParamConfigEntity = systemParamConfigService.selectByParamKey("additional_auto_submit"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if ("1".equals(systemParamConfigEntity.getParamValue())) { |  |  |  |             if ("1".equals(systemParamConfigEntity.getParamValue())) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -763,6 +782,7 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setOriginUllageSupNo(orderEntity.getId()); |  |  |  |             outOrder.setOriginUllageSupNo(orderEntity.getId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setCreateUser(null); |  |  |  |             outOrder.setCreateUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |             outOrder.setReviewUser(null); |  |  |  |             outOrder.setReviewUser(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             outOrder.setPreCheck(false); | 
			
		
	
		
		
			
				
					
					|  |  |  |             orderService.insertOrder(outOrder); |  |  |  |             orderService.insertOrder(outOrder); | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (WarehouseEntity warehouseEntity : temps) { |  |  |  |             for (WarehouseEntity warehouseEntity : temps) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 warehouseEntity.setOrderId(outOrder.getId()); |  |  |  |                 warehouseEntity.setOrderId(outOrder.getId()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -797,6 +817,7 @@ public class InvProductsTrService { | 
			
		
	
		
		
			
				
					
					|  |  |  |         invProductEntity.setZczbhhzbapzbh(erpOrderEntity.getAuthCode()); |  |  |  |         invProductEntity.setZczbhhzbapzbh(erpOrderEntity.getAuthCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         invProductEntity.setInvStorageCode(warehouseEntity.getLocStorageCode()); |  |  |  |         invProductEntity.setInvStorageCode(warehouseEntity.getLocStorageCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         invProductEntity.setInvWarehouseCode(warehouseEntity.getInvWarehouseCode()); |  |  |  |         invProductEntity.setInvWarehouseCode(warehouseEntity.getInvWarehouseCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         invProductEntity.setPrice(erpOrderEntity.getPrice() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |         int count = getActCount(warehouseEntity) * warehouseEntity.getCount(); |  |  |  |         int count = getActCount(warehouseEntity) * warehouseEntity.getCount(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (orderEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { |  |  |  |         if (orderEntity.getMainAction().equals(ConstantType.TYPE_OUT)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             invProductEntity.setOutCount(count); |  |  |  |             invProductEntity.setOutCount(count); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |