资质产品选入修改

master
郑明梁 2 years ago
parent 05e7fa3ba6
commit c3bfed438e

@ -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());
}
}

@ -11,4 +11,5 @@ public class SelectProductBindRequest {
private String customerId;
private Integer auditStatus;
private String companyName;
private String manufacturerIdFk;
}

Loading…
Cancel
Save