|  |  | @ -154,27 +154,38 @@ public class SupProductController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse selectBind(@RequestBody SelectProductBindRequest selectProductBindRequest) { |  |  |  |     public BaseResponse selectBind(@RequestBody SelectProductBindRequest selectProductBindRequest) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectUdiId(Long.valueOf(selectProductBindRequest.getRelIdFk())); |  |  |  |         UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectUdiId(Long.valueOf(selectProductBindRequest.getRelIdFk())); | 
			
		
	
		
		
			
				
					
					|  |  |  |         SupProductEntity supProductEntity = supProductService.findByManufactury(udiRelevanceResponse.getCpmctymc(), udiRelevanceResponse.getManufactory()); |  |  |  |         SupProductEntity supProductEntity = supProductService.findByManufactury(udiRelevanceResponse.getCpmctymc(), udiRelevanceResponse.getManufactory(),selectProductBindRequest.getManufacturerId()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if (supProductEntity != null) { |  |  |  |         if (supProductEntity != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500, "资质证书已存在,请勿重复添加!"); |  |  |  |             return ResultVOUtils.error(500, "该产品资质已存在,请勿重复添加!"); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             supProductEntity = supProductService.findByManufactury(udiRelevanceResponse.getCpmctymc(), udiRelevanceResponse.getManufactory(),""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if(supProductEntity!=null){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setCustomerId(selectProductBindRequest.getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setManufacturerIdFk(selectProductBindRequest.getManufacturerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setCreateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity = new SupProductEntity(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 BeanUtils.copyProperties(udiRelevanceResponse, supProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setProductId(selectProductBindRequest.getProductId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setRecordCode(udiRelevanceResponse.getZczbhhzbapzbh()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setRelIdFk(udiRelevanceResponse.getId() + ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setRecordProductName(udiRelevanceResponse.getCpmctymc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setProductType(udiRelevanceResponse.getQxlb()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setProductDirectoryCode(udiRelevanceResponse.getFlbm()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setRecordPeopleName(udiRelevanceResponse.getYlqxzcrbarmc()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setSpecification(udiRelevanceResponse.getGgxh()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setCreateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setManufacturerIdFk(selectProductBindRequest.getManufacturerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setCustomerId(selectProductBindRequest.getCustomerId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setHchzsb(udiRelevanceResponse.getCplb()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setCompanyName(selectProductBindRequest.getCompanyName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity = new SupProductEntity(); |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         BeanUtils.copyProperties(udiRelevanceResponse, supProductEntity); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setProductId(selectProductBindRequest.getProductId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setRecordCode(udiRelevanceResponse.getZczbhhzbapzbh()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setRelIdFk(udiRelevanceResponse.getId() + ""); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setRecordProductName(udiRelevanceResponse.getCpmctymc()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setProductType(udiRelevanceResponse.getQxlb()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setProductDirectoryCode(udiRelevanceResponse.getFlbm()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setRecordPeopleName(udiRelevanceResponse.getYlqxzcrbarmc()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setSpecification(udiRelevanceResponse.getGgxh()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setCreateTime(new Date()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setUpdateTime(new Date()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setManufacturerIdFk(selectProductBindRequest.getManufacturerId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setCustomerId(selectProductBindRequest.getCustomerId()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setHchzsb(udiRelevanceResponse.getCplb()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setCompanyName(selectProductBindRequest.getCompanyName()); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus()); |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(supProductEntity); |  |  |  |         return ResultVOUtils.success(supProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  | //        boolean b = supProductService.insertRegistration(supProductEntity);
 |  |  |  | //        boolean b = supProductService.insertRegistration(supProductEntity);
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |