公开征求意见导出 修复
This commit is contained in:
+2
-1
@@ -156,6 +156,7 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
|
|||||||
.reason(sarPublicIdeaAll.getReason())
|
.reason(sarPublicIdeaAll.getReason())
|
||||||
.userName(sarPublicIdeaAll.getUserName())
|
.userName(sarPublicIdeaAll.getUserName())
|
||||||
.deptName(sarPublicIdeaAll.getDeptName())
|
.deptName(sarPublicIdeaAll.getDeptName())
|
||||||
|
.cause(sarPublicIdeaAll.getCause())
|
||||||
.build();
|
.build();
|
||||||
standExcel.add(getExcelDto);
|
standExcel.add(getExcelDto);
|
||||||
}
|
}
|
||||||
@@ -170,8 +171,8 @@ public class SarPublicIdeaAllController extends BaseController<SarPublicIdeaAll>
|
|||||||
headList.add(Lists.newArrayList("提出人"));
|
headList.add(Lists.newArrayList("提出人"));
|
||||||
if ("1".equals(type)){
|
if ("1".equals(type)){
|
||||||
headList.add(Lists.newArrayList("处理意见"));
|
headList.add(Lists.newArrayList("处理意见"));
|
||||||
headList.add(Lists.newArrayList("原因"));
|
|
||||||
}
|
}
|
||||||
|
headList.add(Lists.newArrayList("原因"));
|
||||||
if ("1".equals(type)) {
|
if ("1".equals(type)) {
|
||||||
EasyExcel.write(response.getOutputStream(), GetExcelDto2.class).head(headList).autoCloseStream(Boolean.FALSE).sheet("sheet1")
|
EasyExcel.write(response.getOutputStream(), GetExcelDto2.class).head(headList).autoCloseStream(Boolean.FALSE).sheet("sheet1")
|
||||||
.doWrite(standExcel2);
|
.doWrite(standExcel2);
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ public class GetExcelDto {
|
|||||||
// @ExcelProperty("提出人")
|
// @ExcelProperty("提出人")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
|
private String cause;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user