소스 검색

fixed 商品导入bug修复

fushengqian 3 달 전
부모
커밋
1fc332f19a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fuint-application/src/main/java/com/fuint/common/service/impl/GoodsServiceImpl.java

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