|  |  |  | @ -801,7 +801,6 @@ public class IoCheckInoutService { | 
			
		
	
		
			
				
					|  |  |  |  |             orderEntity.setUpdateTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |             orderEntity.setAuditTime(new Date()); | 
			
		
	
		
			
				
					|  |  |  |  |             orderService.update(orderEntity); | 
			
		
	
		
			
				
					|  |  |  |  |             List<IoCodeEntity> codeEntities = codeService.findByOrderId(orderEntity.getBillNo()); | 
			
		
	
		
			
				
					|  |  |  |  |             genInv(orderEntity, bussinessTypeEntity); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | @ -935,9 +934,12 @@ public class IoCheckInoutService { | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     InvWarehouseService invWarehouseService; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     public void genBackOrder(IoOrderEntity orderEntity, List<IoCodeEntity> backCodeList) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (CollUtil.isEmpty(backCodeList)) | 
			
		
	
		
			
				
					|  |  |  |  |     public void genBackOrder(IoOrderEntity orderEntity, List<IoCodeEntity> allCodeList) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (CollUtil.isEmpty(allCodeList)) | 
			
		
	
		
			
				
					|  |  |  |  |             return; | 
			
		
	
		
			
				
					|  |  |  |  |         Map<String, List<IoCodeEntity>> map = allCodeList.stream().collect(Collectors.groupingBy(t -> t.getSupId())); | 
			
		
	
		
			
				
					|  |  |  |  |         for (Map.Entry<String, List<IoCodeEntity>> entry : map.entrySet()) { | 
			
		
	
		
			
				
					|  |  |  |  |             List<IoCodeEntity> backCodeList = entry.getValue(); | 
			
		
	
		
			
				
					|  |  |  |  |             BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeService.findByAction(orderEntity.getAction()); | 
			
		
	
		
			
				
					|  |  |  |  |             if (StrUtil.isNotEmpty(basicBussinessTypeEntity.getPreInBackAction())) { | 
			
		
	
		
			
				
					|  |  |  |  |                 IoOrderEntity outOrder = new IoOrderEntity(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -986,6 +988,8 @@ public class IoCheckInoutService { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |