资质产品选入修改

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

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

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

Loading…
Cancel
Save