Parcourir la source

refactor(marketing): 优化参数获取方式

- 将 param.getList("goodsList") 替换为 param.getListMap("goodsList")
- 将 param.getList("deviceList") 替换为 param.getListMap("deviceList")
hechunping il y a 5 mois
Parent
commit
903045aab2

+ 2 - 2
src/main/java/com/xynet/marketing/service/factory/promotion/impl/base/PromotionFactoryBase.java

@@ -49,11 +49,11 @@ public class PromotionFactoryBase extends ServiceImpl<PromotionMapper, Promotion
         //保存商品
         if (!save.getIsAllGoods()) {
             //删除原来的商品
-            goodsService.saveBatchByActId(save.getId(), "promotion", param.getList("goodsList"));
+            goodsService.saveBatchByActId(save.getId(), "promotion", param.getListMap("goodsList"));
         }
         //保存设备
         if (!save.getIsAllDevice()) {
-            deviceService.saveBatchByActId(save.getId(), "promotion", param.getList("deviceList"));
+            deviceService.saveBatchByActId(save.getId(), "promotion", param.getListMap("deviceList"));
         }
 
         return save.getId();