|
|
@ -157,13 +157,6 @@ public class SupProductController {
|
|
|
|
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{
|
|
|
|
|
|
|
|
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{
|
|
|
|
}else{
|
|
|
|
supProductEntity = new SupProductEntity();
|
|
|
|
supProductEntity = new SupProductEntity();
|
|
|
|
BeanUtils.copyProperties(udiRelevanceResponse, supProductEntity);
|
|
|
|
BeanUtils.copyProperties(udiRelevanceResponse, supProductEntity);
|
|
|
@ -184,8 +177,6 @@ public class SupProductController {
|
|
|
|
supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus());
|
|
|
|
supProductEntity.setAuditStatus(selectProductBindRequest.getAuditStatus());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success(supProductEntity);
|
|
|
|
return ResultVOUtils.success(supProductEntity);
|
|
|
|
// boolean b = supProductService.insertRegistration(supProductEntity);
|
|
|
|
// boolean b = supProductService.insertRegistration(supProductEntity);
|
|
|
|