当前位置:网站首页>List set export excel table
List set export excel table
2022-06-30 08:59:00 【Hujiajun】
@PostMapping("/export")
public void export(@RequestBody PassRecordFindAllVm model, HttpServletResponse response) throws Exception {
List<PassRecordEntity> allList = passRecordService.exportAll(model);
String[][] strArray = allList.stream().map(x -> {
String[] str = new String[9];
str[0] = x.getUserName();
str[1] = x.getDepartmentName();
str[2] = x.getCharacteristic();
str[3] = x.getDeviceName();
str[4] = x.getDevicePosition();
str[5] = x.getWayOfAccess();
str[6] = x.getStatus();
str[7] = x.getTransitTime();
return str;
}).toArray(String[][]::new);
String[] headers = {
" Name of person ", " department ", " features ", " Access control name ", " Equipment location "," Mode of passage "," The verification results "," Passage time "};
ExcelUtil excelUtil = new ExcelUtil();
excelUtil.exporteExcel(" Access record ", headers, strArray, response);
}
边栏推荐
- Use Huawei performance management service to configure the sampling rate on demand
- Esp32 things (II): sharpening the knife without mistaking firewood - make preparations before project development
- Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
- Design specification for smart speakers v1.0
- 启动jar包报错UnsupportedClassVersionError,如何修复
- TiDB 6.0:让 TSO 更高效丨TiDB Book Rush
- C#訪問SQL Server數據庫兩種方式的比較(SqlDataReader vs SqlDataAdapter)
- Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)
- JVM调优相关命令以及解释
- el-input 限制只能输数字
猜你喜欢

Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which

Gilbert Strang's course notes on linear algebra - Lesson 2

Detectron2 source code reading 3-- encapsulating dataset with mapper

el-input 限制只能输数字

Pytorch BERT

Rew acoustic test (I): microphone calibration

Gilbert Strang's course notes on linear algebra - Lesson 1

Qt连接神通数据库

Anchorgenerator for mmdet line by line interpretation

技术管理进阶——管理者如何进行梯队设计及建设
随机推荐
Bind threads to run on a specific CPU logical kernel
Opencv learning notes-day14 drawing of image geometry (rect class rotatedrect class, rectangle drawing rectangle circle drawing circular function line drawing line function ellipse drawing elliptic fu
Detailed explanation of pipline of mmdetection
Esp32 (7): I2S and I2C drivers for function development
codeforces每日5题(均1700)-第三天
Detailed explanation of pytoch's scatter function
14岁懂社会-《关于“工作的幸福”这件事儿》读书笔记
Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
Flink sql -- No factory implements ‘org. apache. flink. table. delegation. ExecutorFactory‘.
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
Deploy the cow like customer network project on the ECS
[untitled]
使用华为性能管理服务,按需配置采样率
关于Lombok的@Data注解
Redis design and Implementation (IV) | master-slave replication
Advanced technology management -- how managers design and build echelons
A troubleshooting of CPU bottom falling
Introduction to the runner of mmcv
Qt连接神通数据库
Redis design and Implementation (VI) | cluster (sharding)