src/main/java/com/whyc/service/ProductService.java
@@ -211,7 +211,10 @@ } } } Set<Integer> pictureRowSet = pictureDataMap.keySet(); Set<Integer> pictureRowSet = new HashSet<>(); if(!pictureDataMap.isEmpty()) { pictureRowSet = pictureDataMap.keySet(); } int lastRowNum = sheet.getLastRowNum(); //取第三行,并以第三行开始 Row row2 = sheet.getRow(1); @@ -320,7 +323,7 @@ bom.setPictureUrl(picturePathFront); }*/ if (pictureRowSet.contains(k)) { if (!pictureRowSet.isEmpty() && pictureRowSet.contains(k)) { PictureData pictureData = pictureDataMap.get(k); //图片存储 product_submit/username/2022-07/