|
@@ -98,10 +98,44 @@ public class ExportController extends BaseController {
|
|
|
private StudentPaymentOrderDao studentPaymentOrderDao;
|
|
|
@Autowired
|
|
|
private StudentDao studentDao;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupPaymentCalenderService musicGroupPaymentCalenderService;
|
|
|
|
|
|
@Autowired
|
|
|
private TeacherService teacherService;
|
|
|
|
|
|
+ @ApiOperation(value = "乐团管理--修改--缴费设置导出")
|
|
|
+ @PostMapping("export/musicGroupPaymentCalender")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('export/musicGroupPaymentCalender')")
|
|
|
+ public void exportTeacherAttendances(HttpServletResponse response, MusicCalenderQueryInfo queryInfo) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
+ List<MusicGroupPaymentCalender> rows = musicGroupPaymentCalenderService.queryDetailPage(queryInfo).getRows();
|
|
|
+ OutputStream outputStream = response.getOutputStream();
|
|
|
+ try {
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"缴费开始日期", "缴费结束日期", "预计缴费人数", "实际缴费人数", "状态", "缴费状态",
|
|
|
+ "备注"}, new String[]{
|
|
|
+ "startPaymentDate", "deadlinePaymentDate", "expectNum", "actualNum", "type.msg", "paymentStatus.desc",
|
|
|
+ "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/queryTeacherAttendances")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/queryTeacherAttendances')")
|