|  |  | @ -26,10 +26,7 @@ import com.glxp.api.service.inout.impl.IoOrderInvoiceService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.inv.InvPreinDetailService; |  |  |  | import com.glxp.api.service.inv.InvPreinDetailService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.inv.InvPreinOrderService; |  |  |  | import com.glxp.api.service.inv.InvPreinOrderService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.inv.InvPreinProductDetailService; |  |  |  | import com.glxp.api.service.inv.InvPreinProductDetailService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.CustomUtil; |  |  |  | import com.glxp.api.util.*; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.GennerOrderUtils; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.JasperUtils; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.OrderNoTypeBean; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.udi.FilterUdiUtils; |  |  |  | import com.glxp.api.util.udi.FilterUdiUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.udi.UdiCalCountUtil; |  |  |  | import com.glxp.api.util.udi.UdiCalCountUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import lombok.RequiredArgsConstructor; |  |  |  | import lombok.RequiredArgsConstructor; | 
			
		
	
	
		
		
			
				
					|  |  | @ -304,12 +301,10 @@ public class IoCheckInoutService { | 
			
		
	
		
		
			
				
					
					|  |  |  |             orderService.update(orderEntity); |  |  |  |             orderService.update(orderEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |             return; |  |  |  |             return; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (orderEntity.getFromType() != ConstantStatus.FROM_COPY |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 && orderEntity.getFromType() != ConstantStatus.FROM_CHANGE && orderEntity.getFromType() != ConstantStatus.FROM_UDIMS) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             orderDetailBizService.deleteByOrderId(orderEntity.getBillNo()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (orderEntity.getFromType() != ConstantStatus.FROM_UDISP && orderEntity.getFromType() != ConstantStatus.FROM_UDIMS) { |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (orderEntity.getFromType() != ConstantStatus.FROM_UDISP | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 && orderEntity.getFromType() != ConstantStatus.FROM_UDIMS) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (orderEntity.getFromType() != ConstantStatus.FROM_COPY |  |  |  |             if (orderEntity.getFromType() != ConstantStatus.FROM_COPY | 
			
		
	
		
		
			
				
					
					|  |  |  |                     && orderEntity.getFromType() != ConstantStatus.FROM_CHANGE) { |  |  |  |                     && orderEntity.getFromType() != ConstantStatus.FROM_CHANGE) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 orderDetailBizService.deleteByOrderId(orderEntity.getBillNo()); |  |  |  |                 orderDetailBizService.deleteByOrderId(orderEntity.getBillNo()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -856,8 +851,11 @@ public class IoCheckInoutService { | 
			
		
	
		
		
			
				
					
					|  |  |  |     //校验完成后生成库存
 |  |  |  |     //校验完成后生成库存
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public void genInv(IoOrderEntity orderEntity, BasicBussinessTypeEntity bussinessTypeEntity) { |  |  |  |     public void genInv(IoOrderEntity orderEntity, BasicBussinessTypeEntity bussinessTypeEntity) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (bussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_OUT) && bussinessTypeEntity.isScanPreIn()) { |  |  |  |         if ( | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 IntUtil.value(orderEntity.getFromType()) != ConstantStatus.FROM_UDISP && | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         bussinessTypeEntity.getMainAction().equals(ConstantType.TYPE_OUT) && bussinessTypeEntity.isScanPreIn()) { | 
			
		
	
		
		
			
				
					
					|  |  |  | //            ThreadUtil.execAsync(() -> {
 |  |  |  | //            ThreadUtil.execAsync(() -> {
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //            内网同步出来不进行退货
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (StrUtil.isNotEmpty(bussinessTypeEntity.getPreInBackAction())) { |  |  |  |             if (StrUtil.isNotEmpty(bussinessTypeEntity.getPreInBackAction())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (bussinessTypeEntity.getBackPreinType() == 1) {    //按单退货
 |  |  |  |                 if (bussinessTypeEntity.getBackPreinType() == 1) {    //按单退货
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |