Merge branch 'master' into docker_package
This commit is contained in:
commit
dd63b8db3d
|
@ -485,11 +485,11 @@ 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", ""));
|
||||
data.add(index.getOrDefault("type", ""));
|
||||
data.add(index.getOrDefault("resourceName", ""));
|
||||
data.add(index.getOrDefault("createDate", ""));
|
||||
data.add(index.getOrDefault("approveStatus", "").toString());
|
||||
data.add(index.getOrDefault("deptName", "") == null ? "" : index.getOrDefault("deptName", "").toString());
|
||||
data.add(index.getOrDefault("type", "") == null ? "" : index.getOrDefault("type", "").toString());
|
||||
data.add(index.getOrDefault("resourceName", "") == null ? "" : index.getOrDefault("resourceName", "").toString());
|
||||
data.add(index.getOrDefault("createDate", "") == null ? "" : index.getOrDefault("createDate", "").toString());
|
||||
data.add(index.getOrDefault("approveStatus", "") == null ? "" : index.getOrDefault("approveStatus", "").toString());
|
||||
return data;
|
||||
}).collect(Collectors.toList());
|
||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
|
@ -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", ""));
|
||||
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", ""));
|
||||
data.add(index.getOrDefault("resourceDeptName", "") == null ? "" : index.getOrDefault("resourceDeptName", "").toString());
|
||||
data.add(index.getOrDefault("resourceName", "") == null ? "" : index.getOrDefault("resourceName", "").toString());
|
||||
data.add(index.getOrDefault("type", "") == null ? "" : index.getOrDefault("type", "").toString());
|
||||
data.add(index.getOrDefault("deptName", "") == null ? "" : index.getOrDefault("deptName", "").toString());
|
||||
data.add(index.getOrDefault("createDate", "") == null ? "" : index.getOrDefault("createDate", "").toString());
|
||||
data.add(index.getOrDefault("approveStatus", "") == null ? "" : index.getOrDefault("approveStatus", "").toString());
|
||||
return data;
|
||||
}).collect(Collectors.toList());
|
||||
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||
|
|
Loading…
Reference in New Issue