|  | @@ -130,9 +130,86 @@ public class ExportController extends BaseController {
 | 
											
												
													
														|  |      private MusicGroupQuitService musicGroupQuitService;
 |  |      private MusicGroupQuitService musicGroupQuitService;
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private IndexBaseMonthDataService indexService;
 |  |      private IndexBaseMonthDataService indexService;
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private TeacherCourseStatisticsService teacherCourseStatisticsService;
 |  |      private TeacherCourseStatisticsService teacherCourseStatisticsService;
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private SysUserCashAccountDetailDao sysUserCashAccountDetailDao;
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private SysUserCoursesAccountDetailDao sysUserCoursesAccountDetailDao;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation(value = "学生个人账户余额导出")
 | 
											
												
													
														|  | 
 |  | +    @PostMapping("export/userCashAccountDetail")
 | 
											
												
													
														|  | 
 |  | +    @PreAuthorize("@pcs.hasPermissions('export/userCashAccountDetail')")
 | 
											
												
													
														|  | 
 |  | +    public void userCashAccountDetail(HttpServletResponse response, Integer userId) throws IOException {
 | 
											
												
													
														|  | 
 |  | +       List<SysUserCashAccountDetail> cashAccountDetails = sysUserCashAccountDetailDao.exportDetail(userId);
 | 
											
												
													
														|  | 
 |  | +       if(cashAccountDetails.size() < 1){
 | 
											
												
													
														|  | 
 |  | +           throw new BizException("没有可导出数据");
 | 
											
												
													
														|  | 
 |  | +       }
 | 
											
												
													
														|  | 
 |  | +       if(cashAccountDetails.size() > 49999){
 | 
											
												
													
														|  | 
 |  | +           throw new BizException("数据超长,请联系管理员");
 | 
											
												
													
														|  | 
 |  | +       }
 | 
											
												
													
														|  | 
 |  | +        OutputStream outputStream = response.getOutputStream();
 | 
											
												
													
														|  | 
 |  | +        try {
 | 
											
												
													
														|  | 
 |  | +            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"学员编号", "姓名", "电话", "声部",
 | 
											
												
													
														|  | 
 |  | +                    "交易类型", "交易金额", "交易时间", "备注"}, new String[]{
 | 
											
												
													
														|  | 
 |  | +                    "userId", "username", "phone", "subjectName",
 | 
											
												
													
														|  | 
 |  | +                    "type.msg", "amount", "createTime", "comment"}, cashAccountDetails);
 | 
											
												
													
														|  | 
 |  | +            response.setContentType("application/octet-stream");
 | 
											
												
													
														|  | 
 |  | +            response.setHeader("Content-Disposition", "attac:wq" +
 | 
											
												
													
														|  | 
 |  | +                    "hment;filename=classGroup-" + 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/userCoursesAccount")
 | 
											
												
													
														|  | 
 |  | +    @PreAuthorize("@pcs.hasPermissions('export/userCoursesAccount')")
 | 
											
												
													
														|  | 
 |  | +    public void userCoursesAccount(HttpServletResponse response, Integer userId) throws IOException {
 | 
											
												
													
														|  | 
 |  | +        List<SysUserCoursesAccountDetail> coursesAccountDetails = sysUserCoursesAccountDetailDao.exportDetail(userId);
 | 
											
												
													
														|  | 
 |  | +        if(coursesAccountDetails.size() < 1){
 | 
											
												
													
														|  | 
 |  | +            throw new BizException("没有可导出数据");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        if(coursesAccountDetails.size() > 49999){
 | 
											
												
													
														|  | 
 |  | +            throw new BizException("数据超长,请联系管理员");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        OutputStream outputStream = response.getOutputStream();
 | 
											
												
													
														|  | 
 |  | +        try {
 | 
											
												
													
														|  | 
 |  | +            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"学员编号", "姓名", "电话", "声部",
 | 
											
												
													
														|  | 
 |  | +                    "交易类型", "交易金额", "交易时间", "备注"}, new String[]{
 | 
											
												
													
														|  | 
 |  | +                    "userId", "username", "phone", "subjectName",
 | 
											
												
													
														|  | 
 |  | +                    "type.msg", "amount", "createTime", "comment"}, coursesAccountDetails);
 | 
											
												
													
														|  | 
 |  | +            response.setContentType("application/octet-stream");
 | 
											
												
													
														|  | 
 |  | +            response.setHeader("Content-Disposition", "attac:wq" +
 | 
											
												
													
														|  | 
 |  | +                    "hment;filename=classGroup-" + 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 = "班级列表导出")
 |  |      @ApiOperation(value = "班级列表导出")
 | 
											
												
													
														|  |      @PostMapping("export/classGroup")
 |  |      @PostMapping("export/classGroup")
 |