123456789101112131415161718192021 |
- package com.fdkankan.agent.util;
- import java.util.HashSet;
- import java.util.List;
- public class ExcelErrorUtil {
- public static String getResultIn(List<Integer> errorList){
- if(errorList.size() <=0){
- return null;
- }
- HashSet<Integer> set = new HashSet<>(errorList);
- StringBuilder res = new StringBuilder("第");
- for (Integer index : set) {
- res.append(index +3).append(",");
- }
- res.deleteCharAt(res.lastIndexOf(","));
- res.append("行存在错误");
- return res.toString();
- }
- }
|