三方配置增加字段

This commit is contained in:
2024-05-16 14:49:46 +08:00
parent 6ba4aadccb
commit f8ed4fe16b
4 changed files with 22 additions and 7 deletions

View File

@@ -94,7 +94,9 @@ public class ListUtil {
// method1 创建一个Integer类型的集合循环遍历String类型的数组并把数据添加进集合
List<Integer> integerList = new ArrayList<>();
for (String s : listString) {
integerList.add(Integer.parseInt(s));
if (!StringUtils.isEmpty(s)) {
integerList.add(Integer.parseInt(s));
}
}
return integerList;
}