浏览代码

产品维护维多利亚添加产品部门移交

yzc 2 年之前
父节点
当前提交
8e9c539a0e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hx-item/src/main/java/com/fjhx/item/service/product/impl/ProductInfoServiceImpl.java

+ 2 - 0
hx-item/src/main/java/com/fjhx/item/service/product/impl/ProductInfoServiceImpl.java

@@ -220,6 +220,8 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
         String victoriatouristJson = productInfo.getVictoriatouristJson();
         String victoriatouristJson = productInfo.getVictoriatouristJson();
         JSONObject json = ObjectUtil.isNotEmpty(victoriatouristJson) ? JSONObject.parseObject(victoriatouristJson) : new JSONObject();
         JSONObject json = ObjectUtil.isNotEmpty(victoriatouristJson) ? JSONObject.parseObject(victoriatouristJson) : new JSONObject();
         json.put("deptId", productInfoDto.getDeptId());
         json.put("deptId", productInfoDto.getDeptId());
+        productInfo.setVictoriatouristJson(json.toJSONString());
+        updateById(productInfo);
     }
     }
 
 
 }
 }