第三方产品信息编辑bug

dev
anthonywj 2 years ago
parent ab66664e2f
commit 0e6b0be87d

@ -201,6 +201,7 @@ public class ThrProductsController {
String value = systemParamConfigService.selectValueByParamKey("enable_edit_third"); String value = systemParamConfigService.selectValueByParamKey("enable_edit_third");
if (StrUtil.isNotEmpty(value) && value.equals("1")) { if (StrUtil.isNotEmpty(value) && value.equals("1")) {
UdiProductEntity udiProductEntity = udiProductService.findByNameCode(thrProductsEntity.getCode()); UdiProductEntity udiProductEntity = udiProductService.findByNameCode(thrProductsEntity.getCode());
if (udiProductEntity != null) {
if (StrUtil.isNotEmpty(thrProductsEntity.getMeasname())) if (StrUtil.isNotEmpty(thrProductsEntity.getMeasname()))
udiProductEntity.setMeasname(thrProductsEntity.getMeasname()); udiProductEntity.setMeasname(thrProductsEntity.getMeasname());
if (StrUtil.isNotEmpty(thrProductsEntity.getSpec())) if (StrUtil.isNotEmpty(thrProductsEntity.getSpec()))
@ -231,6 +232,8 @@ public class ThrProductsController {
udiProductEntity.setGgxh(thrProductsEntity.getStandard()); udiProductEntity.setGgxh(thrProductsEntity.getStandard());
udiProductService.updateUdiInfo(udiProductEntity); udiProductService.updateUdiInfo(udiProductEntity);
} }
}
return ResultVOUtils.success("修改成功!"); return ResultVOUtils.success("修改成功!");
} }

Loading…
Cancel
Save