Commit 369cb3177958baf29ec9378d2810b0587a33ebbf
1 parent
6ed5a831
fix: 修改导出记录
Showing
2 changed files
with
6 additions
and
2 deletions
Bsth-admin/src/main/java/com/ruoyi/driver/controller/DriverController.java
| ... | ... | @@ -11,6 +11,7 @@ import com.ruoyi.pojo.request.DriverSignInRequestVo; |
| 11 | 11 | import com.ruoyi.pojo.request.FaceRegistrationFeedbackVo; |
| 12 | 12 | import com.ruoyi.pojo.request.FaceUpdateReqVo; |
| 13 | 13 | import com.ruoyi.pojo.response.DriverResponseVo; |
| 14 | +import com.ruoyi.pojo.response.ExportReportViewResponseVo; | |
| 14 | 15 | import io.swagger.annotations.Api; |
| 15 | 16 | import io.swagger.annotations.ApiOperation; |
| 16 | 17 | import io.swagger.annotations.ApiParam; |
| ... | ... | @@ -92,8 +93,9 @@ public class DriverController extends BaseController { |
| 92 | 93 | @ApiOperation("导出驾驶员信息列表") |
| 93 | 94 | public void export(HttpServletResponse response, DriverRequestVo driver) { |
| 94 | 95 | List<Driver> list = driverService.selectDriverList(driver); |
| 95 | - ExcelUtil<Driver> util = new ExcelUtil<>(Driver.class); | |
| 96 | - util.exportExcel(response, list, "驾驶员信息数据"); | |
| 96 | + // 不导出图片清空路径信息 | |
| 97 | + ExcelUtil<Driver> util = new ExcelUtil<Driver>(Driver.class); | |
| 98 | + util.exportEasyExcel(response, list, "人员信息表"); | |
| 97 | 99 | } |
| 98 | 100 | |
| 99 | 101 | /** | ... | ... |
Bsth-admin/src/main/java/com/ruoyi/driver/domain/Driver.java
| 1 | 1 | package com.ruoyi.driver.domain; |
| 2 | 2 | |
| 3 | +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; | |
| 3 | 4 | import com.alibaba.excel.annotation.ExcelProperty; |
| 4 | 5 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 5 | 6 | import com.ruoyi.pojo.converter.FaceSignInConverter; |
| ... | ... | @@ -21,6 +22,7 @@ import java.util.Date; |
| 21 | 22 | */ |
| 22 | 23 | @Data |
| 23 | 24 | @ApiModel("驾驶员信息对象") |
| 25 | +@ExcelIgnoreUnannotated | |
| 24 | 26 | public class Driver extends BaseEntity implements Serializable { |
| 25 | 27 | private static final long serialVersionUID = 1L; |
| 26 | 28 | ... | ... |