第三方产品信息编辑,bug修改

dev
anthonywj 2 years ago
parent 33c4793870
commit 35c8440d5b

@ -181,10 +181,14 @@ public class ThrProductsController {
if (StrUtil.isNotEmpty(value) && value.equals("1")) {
UdiProductEntity udiProductEntity = udiProductService.findByNameCode(thrProductsEntity.getCode());
if (udiProductEntity != null) {
if (StrUtil.isNotEmpty(thrProductsEntity.getName()))
udiProductEntity.setCpmctymc(thrProductsEntity.getName());
if (StrUtil.isNotEmpty(thrProductsEntity.getMeasname()))
udiProductEntity.setMeasname(thrProductsEntity.getMeasname());
if (StrUtil.isNotEmpty(thrProductsEntity.getSpec()))
udiProductEntity.setGgxh(thrProductsEntity.getSpec());
if (StrUtil.isNotEmpty(thrProductsEntity.getStandard()))
udiProductEntity.setGgxh(thrProductsEntity.getStandard());
if (StrUtil.isNotEmpty(thrProductsEntity.getRegisterNo()))
udiProductEntity.setZczbhhzbapzbh(thrProductsEntity.getRegisterNo());
if (StrUtil.isNotEmpty(thrProductsEntity.getManufactory()))

@ -428,6 +428,7 @@ CALL Pro_Temp_ColumnWork('basic_products', 'syqsfxyjxmj', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('basic_products', 'mjfs', 'varchar(255)', 1);
CALL Pro_Temp_ColumnWork('basic_products', 'categoryName', 'varchar(255)', 1);
INSERT ignore INTO `sys_param_config`(`parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`, `paramType`,
INSERT ignore INTO `sys_param_config`(id, `parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`,
`paramType`,
`paramExplain`, `updateTime`)
VALUES (0, '是否允许编辑第三方产品信息', 'enable_edit_third', '1', 0, 0, '01', NULL);
VALUES (20059, 0, '是否允许编辑第三方产品信息', 'enable_edit_third', '1', 0, 0, '01', NULL);

Loading…
Cancel
Save