|
|
|
@ -158,13 +158,6 @@ public class SupProductController {
|
|
|
|
|
if (supProductEntity != null) {
|
|
|
|
|
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());
|
|
|
|
@ -182,8 +175,6 @@ public class SupProductController {
|
|
|
|
|
supProductEntity.setHchzsb(udiRelevanceResponse.getCplb());
|
|
|
|
|
supProductEntity.setCompanyName(selectProductBindRequest.getCompanyName());
|
|
|
|
|
supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|