|  |  | @ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |  |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.res.BaseResponse; |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.util.ResultVOUtils; |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.constant.BusTypeConstant; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.basic.BasicProductsDao; |  |  |  | import com.glxp.api.dao.basic.BasicProductsDao; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.dao.basic.UdiRelevanceDao; |  |  |  | import com.glxp.api.dao.basic.UdiRelevanceDao; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.basic.BasicProductsEntity; |  |  |  | import com.glxp.api.entity.basic.BasicProductsEntity; | 
			
		
	
	
		
		
			
				
					|  |  | @ -102,20 +103,34 @@ public class ThrOrderDownload implements IDownload { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 for (IoCollectOrderBiz entity : thrOrder.getBizList()) { |  |  |  |                 for (IoCollectOrderBiz entity : thrOrder.getBizList()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz(); |  |  |  |                     IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     BeanUtil.copyProperties(entity, collectOrderBiz); |  |  |  |                     BeanUtil.copyProperties(entity, collectOrderBiz); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     UdiRelevanceEntity basicUdirelEntity = udiRelevanceDao.selectOne(new LambdaQueryWrapper<UdiRelevanceEntity>().eq(UdiRelevanceEntity::getMainId, entity.getThrCode()).last("limit 1")); |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     if (basicUdirelEntity != null) { |  |  |  |                     if (BusTypeConstant.QXCF001.getBusType().equals(collectOrderRequest.getBusType())){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         collectOrderBiz.setRelId(basicUdirelEntity.getId()); |  |  |  |                         collectOrderBiz.setRelId(entity.getRelId()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         BasicProductsEntity basicProductsEntity = basicProductsDao.selectOne(new LambdaQueryWrapper<BasicProductsEntity>().eq(BasicProductsEntity::getUuid, basicUdirelEntity.getUuid()).last("limit 1")); |  |  |  |                         BasicProductsEntity basicProductsEntity = basicProductsDao.selectOne(new LambdaQueryWrapper<BasicProductsEntity>().eq(BasicProductsEntity::getYbbm, entity.getYbbm()).last("limit 1")); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         if (basicProductsEntity == null || StrUtil.isEmpty(basicProductsEntity.getNameCode())) { |  |  |  |                         if (StrUtil.isEmpty(basicProductsEntity.getNameCode())) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                             errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); |  |  |  |                             errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } else { |  |  |  |                         collectOrderBiz.setTagStatus(1); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); |  |  |  |                         collectOrderBiz.setUnTagCount(0); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         bizList.add(collectOrderBiz); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     }else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         UdiRelevanceEntity basicUdirelEntity = udiRelevanceDao.selectOne(new LambdaQueryWrapper<UdiRelevanceEntity>().eq(UdiRelevanceEntity::getMainId, entity.getThrCode()).last("limit 1")); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (basicUdirelEntity != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             collectOrderBiz.setRelId(basicUdirelEntity.getId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             BasicProductsEntity basicProductsEntity = basicProductsDao.selectOne(new LambdaQueryWrapper<BasicProductsEntity>().eq(BasicProductsEntity::getUuid, basicUdirelEntity.getUuid()).last("limit 1")); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             if (basicProductsEntity == null || StrUtil.isEmpty(basicProductsEntity.getNameCode())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                 errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             errorMsg.append(entity.getCpmctymc()).append("字典未对照").append(";"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         collectOrderBiz.setTagStatus(1); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         collectOrderBiz.setUnTagCount(0); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         bizList.add(collectOrderBiz); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     collectOrderBiz.setTagStatus(1); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     collectOrderBiz.setUnTagCount(0); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     bizList.add(collectOrderBiz); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (StrUtil.isNotBlank(errorMsg)) { |  |  |  |                 if (StrUtil.isNotBlank(errorMsg)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     ioCollectOrder.setTagStatus(4); |  |  |  |                     ioCollectOrder.setTagStatus(4); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } else |  |  |  |                 } else | 
			
		
	
	
		
		
			
				
					|  |  | 
 |