lyhzzz 2 éve
szülő
commit
af158d31c3

+ 3 - 1
src/main/java/com/fdkankan/manage/common/ExcelErrorUtil.java

@@ -2,6 +2,7 @@ package com.fdkankan.manage.common;
 
 import com.fdkankan.manage.exception.BusinessException;
 
+import java.util.HashSet;
 import java.util.List;
 
 public class ExcelErrorUtil {
@@ -10,8 +11,9 @@ public class ExcelErrorUtil {
         if(errorList.size() <=0){
             return null;
         }
+        HashSet<Integer> set = new HashSet<>(errorList);
         StringBuilder res = new StringBuilder("第");
-        for (Integer index : errorList) {
+        for (Integer index : set) {
             res.append(index  +3).append(",");
         }
         res.deleteCharAt(res.lastIndexOf(","));