|
@@ -89,6 +89,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/queryTeacherAttendances")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/queryTeacherAttendances')")
|
|
|
public void exportTeacherAttendances(HttpServletResponse response, TeacherCloseQueryInfo queryInfo) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
@@ -138,6 +139,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/teacherSalaryComplaints")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherSalaryComplaints')")
|
|
|
public void exportTeacherSalaryComplaints(HttpServletResponse response, TeacherSalaryModifyQueryInfo queryInfo) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
List<TeacherSalaryComplaints> rows = teacherSalaryComplaintsService.queryPage(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
@@ -169,6 +171,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/studentBuyPractice")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/studentBuyPractice')")
|
|
|
public void studentBuyPractice(HttpServletResponse response, StudentBuyPracticeQueryInfo queryInfo) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
@@ -217,6 +220,7 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/tenantPaymentOrder")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/tenantPaymentOrder')")
|
|
|
public void tenantPaymentOrder(HttpServletResponse response, TenantPaymentOrderQueryInfo queryInfo) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
@@ -251,7 +255,8 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/teacherSalary")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherSalary')")
|
|
|
public void teacherSalary(HttpServletResponse response, ExportTeacherSalaryQueryInfo queryInfo) throws IOException {
|
|
|
- queryInfo.setRows(99999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -292,7 +297,8 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/teacherCourseReward")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/teacherCourseReward')")
|
|
|
public void teacherCourseReward(HttpServletResponse response, TeacherCourseRewardQueryInfo queryInfo) throws IOException {
|
|
|
- queryInfo.setRows(99999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -344,7 +350,8 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping("export/studentHasCourse")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/studentHasCourse')")
|
|
|
public void studentHasCourse(HttpServletResponse response, StudentManageQueryInfo queryInfo) throws IOException {
|
|
|
- queryInfo.setRows(99999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -367,10 +374,10 @@ public class ExportController extends BaseController {
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "学员编号", "学员姓名", "性别", "家长姓名",
|
|
|
- "家长联系电话", "是否激活", "是否有课", "是否有网管课", "课程余额(元)",
|
|
|
+ "家长联系电话", "是否激活", "是否有课", "是否有网管课", "课程余额(元)", "账户余额(元)",
|
|
|
"所在乐团", "乐团所属声部", "所在乐团状态", "所在vip课", "所在VIP状态", "服务标签", "运营标签","指导老师"}, new String[]{
|
|
|
"organName", "userId", "username", "gender.description", "parentsName", "parentsPhone",
|
|
|
- "isActive.msg", "hasCourse.msg", "hasPracticeCourse.msg", "courseBalance", "musicGroupName",
|
|
|
+ "isActive.msg", "hasCourse.msg", "hasPracticeCourse.msg", "courseBalance", "balance", "musicGroupName",
|
|
|
"subjectName", "musicGroupStatus", "vipGroupName", "vipGroupStatus", "serviceTag.msg", "operatingTag.msg","teacherName"}, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
|
|
@@ -397,7 +404,8 @@ public class ExportController extends BaseController {
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/practiceGroupList')")
|
|
|
public void queryAll(HttpServletResponse response, PracticeGroupQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setIsExport(true);
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -450,7 +458,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/vipGroupList")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/vipGroupList')")
|
|
|
public void queryAll(HttpServletResponse response, VipGroupQueryInfo queryInfo) throws IOException {
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
@@ -477,10 +486,10 @@ public class ExportController extends BaseController {
|
|
|
});
|
|
|
}
|
|
|
try {
|
|
|
- HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"VIP编号", "课程名称", "课程状态", "指导老师", "指导老师", "班级人数", "先上课单价", "线下课单价",
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"VIP编号", "课程名称", "课程状态", "指导老师", "指导老师", "班级人数", "课程单价",
|
|
|
"活动方案", "当前课次", "总课次", "剩余课次", "月消耗", "上次课时间", "开课时间", "结束时间", "申请时间", "学生姓名"}, new String[]{
|
|
|
- "id", "name", "status.msg", "userName", "educationalTeacherName", "studentNum", "onlineClassesUnitPrice",
|
|
|
- "offlineClassesUnitPrice", "vipGroupActivityName", "currentClassTimes", "totalClassTimes", "subClassTimes", "monthConsumeRate", "lastOverTime",
|
|
|
+ "id", "name", "status.msg", "userName", "educationalTeacherName", "studentNum", "courseUnitPrice",
|
|
|
+ "vipGroupActivityName", "currentClassTimes", "totalClassTimes", "subClassTimes", "monthConsumeRate", "lastOverTime",
|
|
|
"courseStartDate", "coursesExpireDate", "registrationStartTime", "userInfo"}, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
|
|
@@ -505,7 +514,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/superFindCourseSchedules")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/superFindCourseSchedules')")
|
|
|
public void superFindCourseSchedules(EndCourseScheduleQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
@@ -555,7 +565,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/sporadicChargeInfo")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/sporadicChargeInfo')")
|
|
|
public void queryPage(SporadicChargeInfoQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
@@ -668,6 +679,8 @@ public class ExportController extends BaseController {
|
|
|
@PostMapping(value = "studentRegistration/queryStudentApplyDetailExport")
|
|
|
@PreAuthorize("@pcs.hasPermissions('studentRegistration/queryStudentApplyDetailExport')")
|
|
|
public void queryStudentApplyDetailExport(StudentRegistrationQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
List<StudentApplyDetailDto> studentApplyDetail = studentRegistrationService.queryStudentDetailPage(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
@@ -697,6 +710,8 @@ public class ExportController extends BaseController {
|
|
|
@RequestMapping("courseScheduleTeacherSalary/export")
|
|
|
@PreAuthorize("@pcs.hasPermissions('courseScheduleTeacherSalary/export')")
|
|
|
public void export(CourseScheduleTeacherSalaryQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
List<TeacherSalaryDto> teacherSalaries = courseScheduleTeacherSalaryService.querySalaries(queryInfo).getRows();
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
@@ -735,7 +750,8 @@ public class ExportController extends BaseController {
|
|
|
queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
}
|
|
|
}
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
queryInfo.setIsExport(true);
|
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
@@ -826,6 +842,8 @@ public class ExportController extends BaseController {
|
|
|
row.setSporadicType("上门费");
|
|
|
} else if (row.getChargeType().equals(9)) {
|
|
|
row.setSporadicType("账户充值");
|
|
|
+ } else if (row.getChargeType().equals(10)) {
|
|
|
+ row.setSporadicType("乐保服务");
|
|
|
}
|
|
|
}
|
|
|
School userSchool = musicGroupDao.findUserSchool(row.getUserId());
|
|
@@ -888,7 +906,8 @@ public class ExportController extends BaseController {
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/musicGroupStudent')")
|
|
|
public void queryMusicGroupStudent(MusicGroupStudentQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
queryInfo.setIsExport(true);
|
|
|
- queryInfo.setRows(99999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
PageInfo<MusicGroupStudentsDto> musicGroupStudentsDtoPageInfo = studentManageService.queryMusicGroupStudent(queryInfo);
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
@@ -962,7 +981,8 @@ public class ExportController extends BaseController {
|
|
|
queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
}
|
|
|
queryInfo.setIsExport(1);
|
|
|
- queryInfo.setRows(99999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
PageInfo<CourseReviewDto> practiceGroupReviews = courseReviewService.findPracticeGroupReviews(queryInfo);
|
|
|
if (practiceGroupReviews.getTotal() <= 0) {
|
|
|
response.setStatus(500);
|
|
@@ -1187,7 +1207,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/extraExercisesReplys")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/extraExercisesReplys')")
|
|
|
public void extraExercisesReplys(ExtraExercilseReplyQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -1247,7 +1268,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/exercisesSituations")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/exercisesSituations')")
|
|
|
public void exercisesSituations(StudentExercisesSituationQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -1301,7 +1323,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/isSettlementCourseSalarys")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/isSettlementCourseSalarys')")
|
|
|
public void isSettlementCourseSalarys(CourseSalaryQueryInfo4Web queryInfo, HttpServletResponse response) throws IOException {
|
|
|
- queryInfo.setRows(999999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -1353,7 +1376,7 @@ public class ExportController extends BaseController {
|
|
|
try {
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(
|
|
|
new String[]{"分部", "课程组类型", "课程编号", "时间", "课程名称", "老师编号", "老师姓名", "签到时间", "签退时间",
|
|
|
- "实际收款", "应发课酬", "课酬扣款", "结算课酬", "状态", "备注"},
|
|
|
+ "学员缴费", "应发课酬", "课酬扣款", "结算课酬", "状态", "备注"},
|
|
|
new String[]{"organName", "groupType.desc", "courseScheduleId", "startClassTime", "courseName", "teacherId", "teacherName",
|
|
|
"signInStatusStr", "signOutStatusStr", "actualReceipts", "actualSalary", "reduceSalary", "finalSalary", "confirmStatus.desc", "memo"}, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
@@ -1379,7 +1402,8 @@ public class ExportController extends BaseController {
|
|
|
@GetMapping("export/operatingStudents")
|
|
|
@PreAuthorize("@pcs.hasPermissions('export/operatingStudents')")
|
|
|
public void operatingStudents(StudentOperatingQueryInfo queryInfo, HttpServletResponse response) {
|
|
|
- queryInfo.setRows(999999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("用户信息获取失败");
|
|
@@ -1464,7 +1488,8 @@ public class ExportController extends BaseController {
|
|
|
queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
}
|
|
|
queryInfo.setIsExport(1);
|
|
|
- queryInfo.setRows(99999);
|
|
|
+ queryInfo.setPage(1);
|
|
|
+ queryInfo.setRows(49999);
|
|
|
PageInfo<CourseReviewDto> practiceGroupReviews = courseReviewService.getVipCourseReviews(queryInfo);
|
|
|
if (practiceGroupReviews.getTotal() <= 0) {
|
|
|
response.setStatus(500);
|