公开征求意见导出 修复

This commit is contained in:
yuezhihang
2022-01-10 18:25:55 +08:00
parent 596528bcbf
commit dc5f63fdb5
2 changed files with 4 additions and 1 deletions
@@ -156,6 +156,7 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
.reason(sarPublicIdeaAll.getReason())
.userName(sarPublicIdeaAll.getUserName())
.deptName(sarPublicIdeaAll.getDeptName())
.cause(sarPublicIdeaAll.getCause())
.build();
standExcel.add(getExcelDto);
}
@@ -170,8 +171,8 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
headList.add(Lists.newArrayList("提出人"));
if ("1".equals(type)){
headList.add(Lists.newArrayList("处理意见"));
headList.add(Lists.newArrayList("原因"));
}
headList.add(Lists.newArrayList("原因"));
if ("1".equals(type)) {
EasyExcel.write(response.getOutputStream(), GetExcelDto2.class).head(headList).autoCloseStream(Boolean.FALSE).sheet("sheet1")
.doWrite(standExcel2);
@@ -38,6 +38,8 @@ public class GetExcelDto {
// @ExcelProperty("提出人")
private String userName;
private String cause;
}