未对EXT6进行判空处理

This commit is contained in:
Mr-wang 2023-12-06 12:21:44 +08:00
parent 6ee7558f5f
commit 79b92b32c5

View File

@ -240,21 +240,25 @@ public class ToPageService extends ActionWeb {
fileHandleRowMaps = new ArrayList<>(); fileHandleRowMaps = new ArrayList<>();
for (RowMap fileRowMap : fileRowMaps) { for (RowMap fileRowMap : fileRowMaps) {
String file_depart = fileRowMap.getString("EXT6"); String file_depart = fileRowMap.getString("EXT6");
file_depart = file_depart.substring(0,file_depart.length()-1); if (UtilString.isNotEmpty(file_depart)){
if (file_depart.contains(",")){ file_depart = file_depart.substring(0,file_depart.length()-1);
String[] split = file_depart.split(","); if (file_depart.contains(",")){
for (String depart: String[] split = file_depart.split(",");
split) { for (String depart:
if (UtilString.isNotEmpty(depart) ){ split) {
if (!list.contains(depart)){ if (UtilString.isNotEmpty(depart) ){
continue; if (!list.contains(depart)){
continue;
}
} }
} }
}else {
if (!StringUtils.isEmpty(file_depart) &&!list.contains(file_depart)){
continue;
}
} }
}else { }else {
if (!StringUtils.isEmpty(file_depart) &&!list.contains(file_depart)){ continue;
continue;
}
} }
String FILEID = fileRowMap.getString("FILEID"); String FILEID = fileRowMap.getString("FILEID");
Integer PLLEVEL = fileRowMap.getInt("PLLEVEL"); Integer PLLEVEL = fileRowMap.getInt("PLLEVEL");