|
@@ -438,12 +438,25 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
|
if (row == null) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if (ExcelUtil.isRowEmpty(row)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ System.out.println("rowIndex==="+rowIndex);
|
|
|
+ XSSFCell nameCell = row.getCell(1);
|
|
|
+ if (nameCell == null) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ System.out.println("name==="+nameCell.getStringCellValue());
|
|
|
XSSFCell executorCell = row.getCell(3);
|
|
|
- String[] executorNameArray = executorCell.getStringCellValue().split(",");
|
|
|
- for (String s : executorNameArray) {
|
|
|
- if(!userNameList.contains(s)&&!s.equals("")&&!s.equals("执行人")){
|
|
|
- userNameList.add(s);
|
|
|
+ if (executorCell != null) {
|
|
|
+ String[] executorNameArray = executorCell.getStringCellValue().split(",");
|
|
|
+ for (String s : executorNameArray) {
|
|
|
+ if(!userNameList.contains(s)&&!s.equals("")&&!s.equals("执行人")){
|
|
|
+ userNameList.add(s);
|
|
|
+ }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ System.out.println("===执行人为空===");
|
|
|
}
|
|
|
}
|
|
|
System.out.println("参与搜素的人员列表"+userNameList + userNameList.size());
|