Selaa lähdekoodia

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

yzc 2 vuotta sitten
vanhempi
commit
8e9c539a0e

+ 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);
     }
 
 }