|  |  | @ -18,6 +18,8 @@ import com.glxp.api.entity.basic.UdiEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.collect.IoCollectOrder; |  |  |  | import com.glxp.api.entity.collect.IoCollectOrder; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.collect.IoCollectOrderBiz; |  |  |  | import com.glxp.api.entity.collect.IoCollectOrderBiz; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.collect.IoCollectOrderCodeAuto; |  |  |  | import com.glxp.api.entity.collect.IoCollectOrderCodeAuto; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.entity.thrsys.ThrBusTypeOriginEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.entity.thrsys.ThrSystemEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.exception.JsonException; |  |  |  | import com.glxp.api.exception.JsonException; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.req.collect.CollectOrderCodeAutoRequest; |  |  |  | import com.glxp.api.req.collect.CollectOrderCodeAutoRequest; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.req.collect.CollectOrderCodeManRequest; |  |  |  | import com.glxp.api.req.collect.CollectOrderCodeManRequest; | 
			
		
	
	
		
		
			
				
					|  |  | @ -30,6 +32,8 @@ import com.glxp.api.service.auth.SysWorkplaceService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.basic.BasicCollectBustypeService; |  |  |  | import com.glxp.api.service.basic.BasicCollectBustypeService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.basic.SysWorkplaceDocumentService; |  |  |  | import com.glxp.api.service.basic.SysWorkplaceDocumentService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.basic.UdiRelevanceService; |  |  |  | import com.glxp.api.service.basic.UdiRelevanceService; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.service.thrsys.IThrBusTypeOriginService; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.service.thrsys.ThrSystemService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.GennerOrderUtils; |  |  |  | import com.glxp.api.util.GennerOrderUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.IntUtil; |  |  |  | import com.glxp.api.util.IntUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.util.OrderNoTypeBean; |  |  |  | import com.glxp.api.util.OrderNoTypeBean; | 
			
		
	
	
		
		
			
				
					|  |  | @ -63,6 +67,11 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode | 
			
		
	
		
		
			
				
					
					|  |  |  |     GennerOrderUtils gennerOrderUtils; |  |  |  |     GennerOrderUtils gennerOrderUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     BasicCollectBustypeService bustypeService; |  |  |  |     BasicCollectBustypeService bustypeService; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private ThrSystemService thrSystemService; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private IThrBusTypeOriginService thrBusTypeOriginService; | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     CustomerService customerService; |  |  |  |     CustomerService customerService; | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
	
		
		
			
				
					|  |  | @ -139,8 +148,14 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (IntUtil.value(sysWorkplaceDocumentEntity.getIsMatching()) == 1) { |  |  |  |                 if (IntUtil.value(sysWorkplaceDocumentEntity.getIsMatching()) == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     collectOrder.setFromType("UDI系统"); |  |  |  |                     collectOrder.setFromType("UDI系统"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else { |  |  |  |                 } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     BasicCollectBustypeEntity bustypeEntity = bustypeService.findByCode(sysWorkplaceDocumentEntity.getDocumentTypeCode()); |  |  |  |                     ThrBusTypeOriginEntity one = thrBusTypeOriginService.getOne(new LambdaQueryWrapper<ThrBusTypeOriginEntity>() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     collectOrder.setFromType(bustypeEntity.getFromType()); |  |  |  |                             .eq(ThrBusTypeOriginEntity::getAction, sysWorkplaceDocumentEntity.getDocumentTypeCode())); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     if (one != null){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         ThrSystemEntity thrSystemEntity = thrSystemService.getOne(new LambdaQueryWrapper<ThrSystemEntity>().eq(ThrSystemEntity::getThirdId, one.getThirdSys())); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (thrSystemEntity != null){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             collectOrder.setFromType(thrSystemEntity.getThirdName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 collectOrderService.save(collectOrder); |  |  |  |                 collectOrderService.save(collectOrder); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } else { |  |  |  |             } else { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |