|  |  | @ -1,6 +1,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package com.glxp.api.service.inout; |  |  |  | package com.glxp.api.service.inout; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.collection.CollUtil; |  |  |  | import cn.hutool.core.collection.CollUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import cn.hutool.core.lang.UUID; | 
			
		
	
		
		
			
				
					
					|  |  |  | import cn.hutool.core.util.StrUtil; |  |  |  | import cn.hutool.core.util.StrUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.util.ResultVOUtils; |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.constant.ConstantStatus; |  |  |  | import com.glxp.api.constant.ConstantStatus; | 
			
		
	
	
		
		
			
				
					|  |  | @ -716,6 +717,11 @@ public class IoCheckInoutService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (preInOrder.size() > 0) { |  |  |  |             if (preInOrder.size() > 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if (StrUtil.isEmpty(orderEntity.getRelKey())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     orderEntity.setRelKey(UUID.fastUUID().toString(true)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 String preInBillNo = ""; |  |  |  |                 String preInBillNo = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 boolean isBreak = false; |  |  |  |                 boolean isBreak = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 for (String key : preInOrder.keySet()) { |  |  |  |                 for (String key : preInOrder.keySet()) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -723,6 +729,7 @@ public class IoCheckInoutService { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         preInBillNo = preInBillNo + "," + key; |  |  |  |                         preInBillNo = preInBillNo + "," + key; | 
			
		
	
		
		
			
				
					
					|  |  |  |                         IoOrderEntity preInEntity = orderService.findByBillNo(key); |  |  |  |                         IoOrderEntity preInEntity = orderService.findByBillNo(key); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         preInEntity.setPreOutBillNo(orderEntity.getBillNo()); |  |  |  |                         preInEntity.setPreOutBillNo(orderEntity.getBillNo()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         preInEntity.setRelKey(orderEntity.getRelKey()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         orderService.update(preInEntity); |  |  |  |                         orderService.update(preInEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         BasicBussinessTypeEntity preBusType = basicBussinessTypeService.findByAction(preInEntity.getAction()); |  |  |  |                         BasicBussinessTypeEntity preBusType = basicBussinessTypeService.findByAction(preInEntity.getAction()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         //预验收不删除单号,方便后续查询
 |  |  |  |                         //预验收不删除单号,方便后续查询
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |