|  |  | @ -293,7 +293,7 @@ public class UdiRlSupController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         udiProductEntity.setUpdateTime(new Date()); |  |  |  |         udiProductEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         UdiRelevanceEntity udiRelevanceEntity1 = udiRelevanceService.selectById(Long.valueOf(rlidStr)); |  |  |  |         UdiRelevanceEntity udiRelevanceEntity1 = udiRelevanceService.selectById(Long.valueOf(rlidStr)); | 
			
		
	
		
		
			
				
					
					|  |  |  |         UdiProductEntity byUuid = udiProductService.findByUuid(udiRelevanceEntity1.getUuid()); |  |  |  |         UdiProductEntity byUuid = udiProductService.findByUuid(udiRelevanceEntity1.getUuid()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (byUuid != null){ |  |  |  |         if (byUuid != null) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             byUuid.setCatalogname1(udiProductEntity.getCatalogname1()); |  |  |  |             byUuid.setCatalogname1(udiProductEntity.getCatalogname1()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             byUuid.setCatalogname2(udiProductEntity.getCatalogname2()); |  |  |  |             byUuid.setCatalogname2(udiProductEntity.getCatalogname2()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             byUuid.setCatalogname3(udiProductEntity.getCatalogname3()); |  |  |  |             byUuid.setCatalogname3(udiProductEntity.getCatalogname3()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -301,7 +301,7 @@ public class UdiRlSupController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             byUuid.setManufactory(udiProductEntity.getManufactory()); |  |  |  |             byUuid.setManufactory(udiProductEntity.getManufactory()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             byUuid.setUpdateTime(new Date()); |  |  |  |             byUuid.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             udiProductService.updateUdiInfo(byUuid); |  |  |  |             udiProductService.updateUdiInfo(byUuid); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }else { |  |  |  |         } else { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             udiProductEntity.setId(IdUtil.getSnowflakeNextId()); |  |  |  |             udiProductEntity.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             udiProductService.insertUdiInfo(udiProductEntity); |  |  |  |             udiProductService.insertUdiInfo(udiProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -309,9 +309,9 @@ public class UdiRlSupController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  |             CodeRel codeRel = new CodeRel(); |  |  |  |             CodeRel codeRel = new CodeRel(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if(udiProductEntity.getProductsType() == null ||  udiProductEntity.getProductsType() == 1){ |  |  |  |             if (udiProductEntity.getProductsType() == null || udiProductEntity.getProductsType() == 1) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 codeRel.setDiNameCode(udiProductEntity.getNameCode()); |  |  |  |                 codeRel.setDiNameCode(udiProductEntity.getNameCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             }else { |  |  |  |             } else { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 codeRel.setDrugCode(udiProductEntity.getNameCode()); |  |  |  |                 codeRel.setDrugCode(udiProductEntity.getNameCode()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             codeRel.setYbbm(udiProductEntity.getYbbm()); |  |  |  |             codeRel.setYbbm(udiProductEntity.getYbbm()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -319,8 +319,8 @@ public class UdiRlSupController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             codeRel.setTyshxyh(udiProductEntity.getTyshxydm()); |  |  |  |             codeRel.setTyshxyh(udiProductEntity.getTyshxydm()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             codeRel.setUpdateTime(new Date()); |  |  |  |             codeRel.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             erpBasicClient.updateCodeRelDetail(codeRel); |  |  |  |             erpBasicClient.updateCodeRelDetail(codeRel); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }catch (Exception e){ |  |  |  |         } catch (Exception e) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             System.out.println("上传多码融合:"+e); |  |  |  |             System.out.println("上传多码融合:" + e); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success("选入成功!"); |  |  |  |         return ResultVOUtils.success("选入成功!"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -365,10 +365,28 @@ public class UdiRlSupController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         BeanUtil.copyProperties(udiInfoExportRequest.getSupplementRequest(), udiProductEntity); |  |  |  |         BeanUtil.copyProperties(udiInfoExportRequest.getSupplementRequest(), udiProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |         //处理是否需要扫码字段
 |  |  |  |         //处理是否需要扫码字段
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         classifyCodeService.updateRequireScanCode(udiProductEntity); |  |  |  |         classifyCodeService.updateRequireScanCode(udiProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         udiProductEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         UdiRelevanceEntity udiRelevanceEntity1 = udiRelevanceService.selectById(Long.valueOf(rlidStr)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         UdiProductEntity byUuid = udiProductService.findByUuid(udiRelevanceEntity1.getUuid()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (byUuid != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setCatalogname1(udiProductEntity.getCatalogname1()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setCatalogname2(udiProductEntity.getCatalogname2()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setCatalogname3(udiProductEntity.getCatalogname3()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setDetailSort(udiProductEntity.getDetailSort()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setYbbm(udiProductEntity.getYbbm()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setManufactory(udiProductEntity.getManufactory()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             byUuid.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             udiProductService.updateUdiInfo(byUuid); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             udiProductEntity.setId(IdUtil.getSnowflakeNextId()); |  |  |  |             udiProductEntity.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             udiProductService.insertUdiInfo(udiProductEntity); |  |  |  |             udiProductService.insertUdiInfo(udiProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success("选入成功!"); |  |  |  |         return ResultVOUtils.success("选入成功!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @AuthRuleAnnotation("") |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/sale/info/updateCompanyProductRelevance") |  |  |  |     @PostMapping("/sale/info/updateCompanyProductRelevance") | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Log(title = "单据管理", businessType = BusinessType.UPDATE) |  |  |  |     @Log(title = "单据管理", businessType = BusinessType.UPDATE) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |