Browse Source

fixed 商品导入bug修复

fushengqian 4 days ago
parent
commit
1fc332f19a

+ 1 - 1
fuint-application/src/main/java/com/fuint/common/service/impl/GoodsServiceImpl.java

@@ -886,7 +886,7 @@ public class GoodsServiceImpl extends ServiceImpl<MtGoodsMapper, MtGoods> implem
                 throw new BusinessCheckException("商品导入失败,单次导入商品数量不能大于1000");
             }
             for (int i = 0; i < goodsList.size(); i++) {
-                 List<String> goods = goodsList.get(0);
+                 List<String> goods = goodsList.get(i);
                  MtGoods mtGoods = new MtGoods();
                  mtGoods.setId(0);
                  mtGoods.setName(goods.get(0));