|  |  | @ -141,6 +141,9 @@ public class SupProductController { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return ResultVOUtils.error(500, errMsg.substring(1) + "等证书未上传,无法提交审核!"); |  |  |  |                 return ResultVOUtils.error(500, errMsg.substring(1) + "等证书未上传,无法提交审核!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         int i = supProductService.findProduct(supProductEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         System.out.println(i); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (i == 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setCreateTime(new Date()); |  |  |  |         supProductEntity.setCreateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setUpdateTime(new Date()); |  |  |  |         supProductEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setId(IdUtil.getSnowflakeNextId()); |  |  |  |         supProductEntity.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
	
		
		
			
				
					|  |  | @ -149,6 +152,8 @@ public class SupProductController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.success("添加成功"); |  |  |  |             return ResultVOUtils.success("添加成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(ResultEnum.NOT_NETWORK); |  |  |  |             return ResultVOUtils.error(ResultEnum.NOT_NETWORK); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }} else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return ResultVOUtils.error(ResultEnum.DATA_REPEAT); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -159,11 +164,11 @@ public class SupProductController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectUdiId(Long.valueOf(selectProductBindRequest.getRelIdFk())); |  |  |  |         UdiRelevanceResponse udiRelevanceResponse = udiRelevanceService.selectUdiId(Long.valueOf(selectProductBindRequest.getRelIdFk())); | 
			
		
	
		
		
			
				
					
					|  |  |  |         SupProductEntity supProductEntity = supProductService.findByManufactury(udiRelevanceResponse.getCpmctymc(), udiRelevanceResponse.getManufactory(), selectProductBindRequest.getManufacturerId()); |  |  |  |         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 { |  |  |  | //        } else {
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity = new SupProductEntity(); |  |  |  |         supProductEntity = new SupProductEntity(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             BeanUtil.copyProperties(udiRelevanceResponse, supProductEntity); |  |  |  |         BeanUtils.copyProperties(udiRelevanceResponse, supProductEntity); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setProductId(selectProductBindRequest.getProductId()); |  |  |  |         supProductEntity.setProductId(selectProductBindRequest.getProductId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setRecordCode(udiRelevanceResponse.getZczbhhzbapzbh()); |  |  |  |         supProductEntity.setRecordCode(udiRelevanceResponse.getZczbhhzbapzbh()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setRelIdFk(udiRelevanceResponse.getId() + ""); |  |  |  |         supProductEntity.setRelIdFk(udiRelevanceResponse.getId() + ""); | 
			
		
	
	
		
		
			
				
					|  |  | @ -179,7 +184,7 @@ public class SupProductController { | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setHchzsb(udiRelevanceResponse.getCplb()); |  |  |  |         supProductEntity.setHchzsb(udiRelevanceResponse.getCplb()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setCompanyName(selectProductBindRequest.getCompanyName()); |  |  |  |         supProductEntity.setCompanyName(selectProductBindRequest.getCompanyName()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus()); |  |  |  |         supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus()); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  | //        }
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(supProductEntity); |  |  |  |         return ResultVOUtils.success(supProductEntity); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |