npe
This commit is contained in:
parent
f1d3fea424
commit
a4047352c1
|
@ -485,10 +485,10 @@ public class CensusController {
|
|||
ArrayList<Map> resultList = (ArrayList<Map>) resourceService.selectCensusResourceTable(params);
|
||||
List<List<Object>> date = resultList.stream().map(index -> {
|
||||
List<Object> data = new ArrayList<>();
|
||||
data.add(index.getOrDefault("deptName", "").toString());
|
||||
data.add(index.getOrDefault("type", "").toString());
|
||||
data.add(index.getOrDefault("resourceName", "").toString());
|
||||
data.add(index.getOrDefault("createDate", "").toString());
|
||||
data.add(index.getOrDefault("deptName", ""));
|
||||
data.add(index.getOrDefault("type", ""));
|
||||
data.add(index.getOrDefault("resourceName", ""));
|
||||
data.add(index.getOrDefault("createDate", ""));
|
||||
data.add(index.getOrDefault("approveStatus", "").toString());
|
||||
return data;
|
||||
}).collect(Collectors.toList());
|
||||
|
@ -550,12 +550,12 @@ public class CensusController {
|
|||
ArrayList<Map> resultList = (ArrayList<Map>) resourceService.selectCensusApplyTable(params);
|
||||
List<List<Object>> date = resultList.stream().map(index -> {
|
||||
List<Object> data = new ArrayList<>();
|
||||
data.add(index.getOrDefault("resourceDeptName", "").toString());
|
||||
data.add(index.getOrDefault("resourceName", "").toString());
|
||||
data.add(index.getOrDefault("type", "").toString());
|
||||
data.add(index.getOrDefault("deptName", "").toString());
|
||||
data.add(index.getOrDefault("createDate", "").toString());
|
||||
data.add(index.getOrDefault("approveStatus", "").toString());
|
||||
data.add(index.getOrDefault("resourceDeptName", ""));
|
||||
data.add(index.getOrDefault("resourceName", ""));
|
||||
data.add(index.getOrDefault("type", ""));
|
||||
data.add(index.getOrDefault("deptName", ""));
|
||||
data.add(index.getOrDefault("createDate", ""));
|
||||
data.add(index.getOrDefault("approveStatus", ""));
|
||||
return data;
|
||||
}).collect(Collectors.toList());
|
||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
|
|
Loading…
Reference in New Issue