当前位置:网站首页>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);
}
边栏推荐
- 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
- Source code interpretation of detectron2 1--engine
- Tidb 6.0: making Tso more efficient tidb Book rush
- TiDB v6.0.0 (DMR) :缓存表初试丨TiDB Book Rush
- el-input 限制只能输数字
- C#訪問SQL Server數據庫兩種方式的比較(SqlDataReader vs SqlDataAdapter)
- mysql基础入门 day3 动力节点[老杜]课堂笔记
- 维基媒体基金会公布新商业产品“维基媒体企业”首批客户
- VIM from dislike to dependence (21) -- cross file search
- Introduction to MySQL basics day3 power node [Lao Du] class notes
猜你喜欢

C accesses mongodb and performs CRUD operations
![[untitled]](/img/45/368c41a74bf0738369c58c5963fca0.jpg)
[untitled]

Self made GIF dynamic graph -gifcam

Mmdet line by line deltaxywhbboxcoder

Flink SQL 自定义 Connector

Codeworks 5 questions per day (1700 for each) - the third day

Raspberry pie 4B no screen installation system and networking using VNC wireless projection function

Flink Exception -- No ExecutorFactory found to execute the application

TiDB 6.0:让 TSO 更高效丨TiDB Book Rush

Flink 数据偶尔数据积压导致checkpoint失败
随机推荐
自制GIF动态图-gifcam
Esp32 things (I): Preface
Flink 数据偶尔数据积压导致checkpoint失败
layer. Open processing method when the passed value is an array or the value is too long
Torchvision loads the weight of RESNET except the full connection layer
Redis design and Implementation (VI) | cluster (sharding)
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
国债逆回购绝对安全吗 网上怎么开户
Sort (simple description)
Opencv learning notes-day9 opencv's own color table operation (colormap coloraptypes enumeration data types and applycolormap() pseudo color function)
技术管理进阶——管理者如何进行梯队设计及建设
挖财开户安全吗?怎么有人说不靠谱。
c#获取当前的时间戳
Rew acoustic test (II): offline test
[untitled]
Resnet50+fpn for mmdet line by line code interpretation
快应用中实现自定义抽屉组件
Is it safe to open an account? How can anyone say that it is not reliable.
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
Use Huawei performance management service to configure the sampling rate on demand