This commit is contained in:
wangliwen 2022-10-18 15:21:50 +08:00
parent f1d3fea424
commit a4047352c1
1 changed files with 10 additions and 10 deletions

View File

@ -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");