|
@@ -78,6 +78,39 @@ public class ExportController extends BaseController {
|
|
|
private ExtracurricularExercisesReplyService extracurricularExercisesReplyService;
|
|
|
@Autowired
|
|
|
private StudentExtracurricularExercisesSituationService studentExtracurricularExercisesSituationService;
|
|
|
+ @Autowired
|
|
|
+ private TeacherSalaryComplaintsService teacherSalaryComplaintsService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "导出申述处理列表")
|
|
|
+ @PostMapping("export/teacherSalaryComplaints")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('export/teacherSalaryComplaints')")
|
|
|
+ public void exportTeacherSalaryComplaints(HttpServletResponse response, TeacherSalaryModifyQueryInfo queryInfo) throws IOException {
|
|
|
+ queryInfo.setRows(49999);
|
|
|
+ List<TeacherSalaryComplaints> rows = teacherSalaryComplaintsService.queryPage(queryInfo).getRows();
|
|
|
+ OutputStream outputStream = response.getOutputStream();
|
|
|
+ try {
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "老师ID", "老师姓名", "课酬归属时间", "申述提交时间", "状态",
|
|
|
+ "申述处理者", "备注"}, new String[]{
|
|
|
+ "organName", "teacherId", "realName", "salarySettlementMonth", "createTime", "statusEnum.msg",
|
|
|
+ "operatorRealName", "memo"}, rows);
|
|
|
+ response.setContentType("application/octet-stream");
|
|
|
+ response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
|
|
|
+ response.flushBuffer();
|
|
|
+ outputStream = response.getOutputStream();
|
|
|
+ workbook.write(outputStream);
|
|
|
+ outputStream.flush();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ } finally {
|
|
|
+ if (outputStream != null) {
|
|
|
+ try {
|
|
|
+ outputStream.close();
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "网管课购买列表")
|
|
|
@PostMapping("export/studentBuyPractice")
|