Преглед на файлове

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

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();
         JSONObject json = ObjectUtil.isNotEmpty(victoriatouristJson) ? JSONObject.parseObject(victoriatouristJson) : new JSONObject();
         json.put("deptId", productInfoDto.getDeptId());
+        productInfo.setVictoriatouristJson(json.toJSONString());
+        updateById(productInfo);
     }
 
 }