|  | @@ -85,14 +85,14 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          List<ExportTeacherSalaryDto> rows = courseScheduleTeacherSalaryService.exportTeacherSalary(queryInfo);
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"课时编号", "老师编号", "老师姓名", "老师分部", "工作类别",
 | 
	
		
			
				|  |  | -                    "课程分部","课程组编号", "课程班名称", "乐团模式", "vip活动名称", "阶梯奖励名称","线上课/线下课", "线上课单价", "线下课单价",
 | 
	
		
			
				|  |  | +                    "课程分部", "课程组编号", "课程班名称", "乐团模式", "vip活动名称", "阶梯奖励名称", "线上课/线下课", "线上课单价", "线下课单价",
 | 
	
		
			
				|  |  |                      "课程类别", "课时时长", "实际上课时长", "上课日期",
 | 
	
		
			
				|  |  |                      "上课时间", "教师签到状态", "教师签退状态", "教师签到时间", "教师签退时间",
 | 
	
		
			
				|  |  | -                    "主辅", "上课地点", "应到学员", "学员签到时间", "学员签退时间","课时课酬","阶梯奖励"}, new String[]{
 | 
	
		
			
				|  |  | +                    "主辅", "上课地点", "应到学员", "学员签到时间", "学员签退时间", "课时课酬", "阶梯奖励"}, new String[]{
 | 
	
		
			
				|  |  |                      "courseScheduleId", "teacherId", "teacherName", "teacherOrganName", "jobType",
 | 
	
		
			
				|  |  | -                    "courseScheduleOrganName", "groupId", "groupName", "changeType", "vipActiveName","activeName", "teachMode", "onlineClassesUnitPrice", "offlineClassesUnitPrice",
 | 
	
		
			
				|  |  | -                    "courseScheduleType","signCourseScheduleTime","currentTime","classDate","courseScheduleStartTime","signInStatus",
 | 
	
		
			
				|  |  | -                    "signOutStatus","signInTime","signOutTime","teacherRole","address","studentNum","studentSignInTime","studentSignOutTime","price","rewards"}, rows);
 | 
	
		
			
				|  |  | +                    "courseScheduleOrganName", "groupId", "groupName", "changeType", "vipActiveName", "activeName", "teachMode", "onlineClassesUnitPrice", "offlineClassesUnitPrice",
 | 
	
		
			
				|  |  | +                    "courseScheduleType", "signCourseScheduleTime", "currentTime", "classDate", "courseScheduleStartTime", "signInStatus",
 | 
	
		
			
				|  |  | +                    "signOutStatus", "signInTime", "signOutTime", "teacherRole", "address", "studentNum", "studentSignInTime", "studentSignOutTime", "price", "rewards"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -113,15 +113,15 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          if (sysUser == null) {
 | 
	
		
			
				|  |  |              throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(!sysUser.getIsSuperAdmin()){
 | 
	
		
			
				|  |  | +        if (!sysUser.getIsSuperAdmin()) {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  |              if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 | 
	
		
			
				|  |  |                  queryInfo.setOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  | -            }else if(StringUtils.isEmpty(employee.getOrganIdList())){
 | 
	
		
			
				|  |  | +            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
 | 
	
		
			
				|  |  |                  throw new BizException("用户所在分部异常");
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                  List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
 | 
	
		
			
				|  |  | -                if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
 | 
	
		
			
				|  |  | +                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
 | 
	
		
			
				|  |  |                      throw new BizException("非法请求");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -130,11 +130,11 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          List<StudentManageListDto> rows = studentManageService.findStudentsByOrganId(queryInfo).getRows();
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "学员编号", "学员姓名", "性别", "家长姓名",
 | 
	
		
			
				|  |  | -                    "家长联系电话", "是否激活", "是否有课", "是否预约网管课","是否有网管课", "课程余额(元)",
 | 
	
		
			
				|  |  | +                    "家长联系电话", "是否激活", "是否有课", "是否预约网管课", "是否有网管课", "课程余额(元)",
 | 
	
		
			
				|  |  |                      "所在乐团", "乐团所属声部", "所在乐团状态", "所在vip课", "所在VIP状态"}, new String[]{
 | 
	
		
			
				|  |  |                      "organName", "userId", "username", "gender.description", "parentsName", "parentsPhone",
 | 
	
		
			
				|  |  | -                    "isActive.msg","hasCourse.msg","isMake.msg","hasPracticeCourse.msg","courseBalance","musicGroupName",
 | 
	
		
			
				|  |  | -                    "subjectName","musicGroupStatus","vipGroupName","vipGroupStatus"}, rows);
 | 
	
		
			
				|  |  | +                    "isActive.msg", "hasCourse.msg", "isMake.msg", "hasPracticeCourse.msg", "courseBalance", "musicGroupName",
 | 
	
		
			
				|  |  | +                    "subjectName", "musicGroupStatus", "vipGroupName", "vipGroupStatus"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -149,37 +149,37 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "导出陪练课列表")
 | 
	
		
			
				|  |  |      @GetMapping("export/practiceGroupList")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('export/practiceGroupList')")
 | 
	
		
			
				|  |  | -    public void queryAll(HttpServletResponse response,PracticeGroupQueryInfo queryInfo) {
 | 
	
		
			
				|  |  | +    public void queryAll(HttpServletResponse response, PracticeGroupQueryInfo queryInfo) {
 | 
	
		
			
				|  |  |          queryInfo.setIsExport(true);
 | 
	
		
			
				|  |  |          queryInfo.setRows(999999999);
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |          if (sysUser == null) {
 | 
	
		
			
				|  |  |              throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(!sysUser.getIsSuperAdmin()){
 | 
	
		
			
				|  |  | +        if (!sysUser.getIsSuperAdmin()) {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  |              if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 | 
	
		
			
				|  |  |                  queryInfo.setOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  | -            }else if(StringUtils.isEmpty(employee.getOrganIdList())){
 | 
	
		
			
				|  |  | +            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
 | 
	
		
			
				|  |  |                  throw new BizException("用户所在分部异常");
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                  List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
 | 
	
		
			
				|  |  | -                if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
 | 
	
		
			
				|  |  | +                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
 | 
	
		
			
				|  |  |                      throw new BizException("非法请求");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          List<PracticeGroupDto> rows = practiceGroupService.findPracticeGroups(queryInfo).getRows();
 | 
	
		
			
				|  |  | -        if(rows != null && rows.size() > 0){
 | 
	
		
			
				|  |  | -            rows.forEach(e->{
 | 
	
		
			
				|  |  | -                e.setSubClassTimes(e.getTotalClassTimes()==null?0:e.getTotalClassTimes() - (e.getCurrentClassTimes()==null?0:e.getCurrentClassTimes()));
 | 
	
		
			
				|  |  | +        if (rows != null && rows.size() > 0) {
 | 
	
		
			
				|  |  | +            rows.forEach(e -> {
 | 
	
		
			
				|  |  | +                e.setSubClassTimes(e.getTotalClassTimes() == null ? 0 : e.getTotalClassTimes() - (e.getCurrentClassTimes() == null ? 0 : e.getCurrentClassTimes()));
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部","网管课编号", "课程名称", "指导老师", "教务老师", "班级人数", "先上课单价", "线下课单价",
 | 
	
		
			
				|  |  | -                    "当前课次", "总课次", "剩余课次","开课时间", "结束时间"}, new String[]{
 | 
	
		
			
				|  |  | -                    "organName","id", "name", "teacherName", "educationalTeacherName", "studentNum", "onlineClassesUnitPrice",
 | 
	
		
			
				|  |  | -                    "offlineClassesUnitPrice", "currentClassTimes", "totalClassTimes", "subClassTimes","coursesStartDate", "coursesExpireDate"}, rows);
 | 
	
		
			
				|  |  | +            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "网管课编号", "课程名称", "指导老师", "教务老师", "班级人数", "先上课单价", "线下课单价",
 | 
	
		
			
				|  |  | +                    "当前课次", "总课次", "剩余课次", "开课时间", "结束时间"}, new String[]{
 | 
	
		
			
				|  |  | +                    "organName", "id", "name", "teacherName", "educationalTeacherName", "studentNum", "onlineClassesUnitPrice",
 | 
	
		
			
				|  |  | +                    "offlineClassesUnitPrice", "currentClassTimes", "totalClassTimes", "subClassTimes", "coursesStartDate", "coursesExpireDate"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -193,30 +193,30 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "导出VIP课管理")
 | 
	
		
			
				|  |  |      @GetMapping("export/vipGroupList")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('export/vipGroupList')")
 | 
	
		
			
				|  |  | -    public void queryAll(HttpServletResponse response,VipGroupQueryInfo queryInfo) {
 | 
	
		
			
				|  |  | +    public void queryAll(HttpServletResponse response, VipGroupQueryInfo queryInfo) {
 | 
	
		
			
				|  |  |          queryInfo.setRows(999999999);
 | 
	
		
			
				|  |  |          queryInfo.setIsExport(true);
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |          if (sysUser == null) {
 | 
	
		
			
				|  |  |              throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(!sysUser.getIsSuperAdmin()){
 | 
	
		
			
				|  |  | +        if (!sysUser.getIsSuperAdmin()) {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  |              if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 | 
	
		
			
				|  |  |                  queryInfo.setOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  | -            }else if(StringUtils.isEmpty(employee.getOrganIdList())){
 | 
	
		
			
				|  |  | +            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
 | 
	
		
			
				|  |  |                  throw new BizException("用户所在分部异常");
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                  List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
 | 
	
		
			
				|  |  | -                if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
 | 
	
		
			
				|  |  | +                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
 | 
	
		
			
				|  |  |                      throw new BizException("非法请求");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          List<VipGroup> rows = vipGroupService.findVipGroups(queryInfo).getRows();
 | 
	
		
			
				|  |  | -        if(rows != null && rows.size() > 0){
 | 
	
		
			
				|  |  | -            rows.forEach(e->{
 | 
	
		
			
				|  |  | -                e.setSubClassTimes(e.getTotalClassTimes()==null?0:e.getTotalClassTimes() - (e.getCurrentClassTimes()==null?0:e.getCurrentClassTimes()));
 | 
	
		
			
				|  |  | +        if (rows != null && rows.size() > 0) {
 | 
	
		
			
				|  |  | +            rows.forEach(e -> {
 | 
	
		
			
				|  |  | +                e.setSubClassTimes(e.getTotalClassTimes() == null ? 0 : e.getTotalClassTimes() - (e.getCurrentClassTimes() == null ? 0 : e.getCurrentClassTimes()));
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          try {
 | 
	
	
		
			
				|  | @@ -238,22 +238,22 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "终课表列表导出")
 | 
	
		
			
				|  |  |      @GetMapping("export/superFindCourseSchedules")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('export/superFindCourseSchedules')")
 | 
	
		
			
				|  |  | -    public void superFindCourseSchedules(EndCourseScheduleQueryInfo queryInfo,HttpServletResponse response){
 | 
	
		
			
				|  |  | +    public void superFindCourseSchedules(EndCourseScheduleQueryInfo queryInfo, HttpServletResponse response) {
 | 
	
		
			
				|  |  |          queryInfo.setRows(999999999);
 | 
	
		
			
				|  |  |          queryInfo.setIsExport(true);
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |          if (sysUser == null) {
 | 
	
		
			
				|  |  |              throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(!sysUser.getIsSuperAdmin()){
 | 
	
		
			
				|  |  | +        if (!sysUser.getIsSuperAdmin()) {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  |              if (org.apache.commons.lang3.StringUtils.isEmpty(queryInfo.getOrganIdList())) {
 | 
	
		
			
				|  |  |                  queryInfo.setOrganIdList(employee.getOrganIdList());
 | 
	
		
			
				|  |  | -            }else if(org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())){
 | 
	
		
			
				|  |  | +            } else if (org.apache.commons.lang3.StringUtils.isEmpty(employee.getOrganIdList())) {
 | 
	
		
			
				|  |  |                  throw new BizException("用户所在分部异常");
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                  List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
 | 
	
		
			
				|  |  | -                if(!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))){
 | 
	
		
			
				|  |  | +                if (!list.containsAll(Arrays.asList(queryInfo.getOrganIdList().split(",")))) {
 | 
	
		
			
				|  |  |                      throw new BizException("非法请求");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -261,10 +261,10 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          List<CourseScheduleEndDto> rows = scheduleService.endFindCourseSchedules(queryInfo).getRows();
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部名称", "课程编号", "开始时间", "结束时间", "班级名称", "班级声部", "课程名称", "课程类型", "教学模式",
 | 
	
		
			
				|  |  | -                    "教学点", "课程状态", "是否点名", "指导老师", "学员编号", "签到时间", "签退时间","签到备注"}, new String[]{
 | 
	
		
			
				|  |  | -                    "organName", "id", "startClassTime", "endClassTime", "classGroupName","subjectName", "name",
 | 
	
		
			
				|  |  | +                    "教学点", "课程状态", "是否点名", "指导老师", "学员编号", "签到时间", "签退时间", "签到备注"}, new String[]{
 | 
	
		
			
				|  |  | +                    "organName", "id", "startClassTime", "endClassTime", "classGroupName", "subjectName", "name",
 | 
	
		
			
				|  |  |                      "groupType.desc", "teachMode.msg", "schoolName", "status.msg", "isCallNames.msg", "teacherName", "studentId", "signInTime",
 | 
	
		
			
				|  |  | -                    "signOutTime","remark"}, rows);
 | 
	
		
			
				|  |  | +                    "signOutTime", "remark"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -279,30 +279,30 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      @ApiOperation(value = "导出零星收费列表")
 | 
	
		
			
				|  |  |      @GetMapping("export/sporadicChargeInfo")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('export/sporadicChargeInfo')")
 | 
	
		
			
				|  |  | -    public void queryPage(SporadicChargeInfoQueryInfo queryInfo,HttpServletResponse response) {
 | 
	
		
			
				|  |  | +    public void queryPage(SporadicChargeInfoQueryInfo queryInfo, HttpServletResponse response) {
 | 
	
		
			
				|  |  |          queryInfo.setRows(999999999);
 | 
	
		
			
				|  |  |          queryInfo.setIsExport(true);
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |          if (sysUser == null) {
 | 
	
		
			
				|  |  |              throw new BizException("用户信息获取失败");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(!sysUser.getIsSuperAdmin()){
 | 
	
		
			
				|  |  | +        if (!sysUser.getIsSuperAdmin()) {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  |              if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 | 
	
		
			
				|  |  |                  queryInfo.setOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  | -            }else if(StringUtils.isEmpty(employee.getOrganIdList())){
 | 
	
		
			
				|  |  | +            } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
 | 
	
		
			
				|  |  |                  throw new BizException("用户所在分部异常");
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                  List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
 | 
	
		
			
				|  |  | -                if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
 | 
	
		
			
				|  |  | +                if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
 | 
	
		
			
				|  |  |                      throw new BizException("非法请求");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          List<SporadicChargeInfo> rows = sporadicChargeInfoService.queryDetailPage(queryInfo).getRows();
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "收费类型", "标题", "金额", "时间", "学生姓名","创建人"}, new String[]{
 | 
	
		
			
				|  |  | -                    "organName", "chargeType.msg", "title", "amount", "updateTime", "userName","operatorName"}, rows);
 | 
	
		
			
				|  |  | +            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "收费类型", "标题", "金额", "时间", "学生姓名", "创建人"}, new String[]{
 | 
	
		
			
				|  |  | +                    "organName", "chargeType.msg", "title", "amount", "updateTime", "userName", "operatorName"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -346,7 +346,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('order/musicalListExport')")
 | 
	
		
			
				|  |  |      public void musicalListExport(HttpServletResponse response, String musicGroupId) {
 | 
	
		
			
				|  |  |          List<Goods> musicalList = studentPaymentOrderDetailService.getMusicalList(musicGroupId);
 | 
	
		
			
				|  |  | -        if(musicalList.size() > 50000){
 | 
	
		
			
				|  |  | +        if (musicalList.size() > 50000) {
 | 
	
		
			
				|  |  |              throw new BizException("数据集太大,不能导出.最大数据集不能超过50000");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          try {
 | 
	
	
		
			
				|  | @@ -367,7 +367,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('order/musicalListDetailExport')")
 | 
	
		
			
				|  |  |      public void musicalListDetailExport(HttpServletResponse response, String musicGroupId) {
 | 
	
		
			
				|  |  |          List<musicalListDetailDto> musicalList = studentPaymentOrderDetailService.getMusicalListDetail(musicGroupId);
 | 
	
		
			
				|  |  | -        if(musicalList.size() > 50000){
 | 
	
		
			
				|  |  | +        if (musicalList.size() > 50000) {
 | 
	
		
			
				|  |  |              throw new BizException("数据集太大,不能导出.最大数据集不能超过50000");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          try {
 | 
	
	
		
			
				|  | @@ -428,9 +428,9 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |          if (!sysUser.getIsSuperAdmin()) {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  | -            if(StringUtils.isEmpty(queryInfo.getOrganId()) && queryInfo.getOrderType().equals("3")){
 | 
	
		
			
				|  |  | +            if (StringUtils.isEmpty(queryInfo.getOrganId()) && queryInfo.getOrderType().equals("3")) {
 | 
	
		
			
				|  |  |                  queryInfo.setRoutingOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  | -            }else if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 | 
	
		
			
				|  |  | +            } else if (StringUtils.isEmpty(queryInfo.getOrganId())) {
 | 
	
		
			
				|  |  |                  queryInfo.setOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -439,7 +439,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          Map<String, Object> params = new HashMap<String, Object>();
 | 
	
		
			
				|  |  |          MapUtil.populateMap(params, queryInfo);
 | 
	
		
			
				|  |  |          List<StudentPaymentOrderExportDto> studentPaymentOrderExportDtos = studentPaymentOrderService.ExportQueryPage(params);
 | 
	
		
			
				|  |  | -        if(studentPaymentOrderExportDtos.size() > 50000){
 | 
	
		
			
				|  |  | +        if (studentPaymentOrderExportDtos.size() > 50000) {
 | 
	
		
			
				|  |  |              throw new BizException("数据集太大,不能导出.最大数据集不能超过50000");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -465,9 +465,9 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |              if (row.getOrderDetailList() != null) {
 | 
	
		
			
				|  |  |                  for (StudentPaymentOrderDetail orderDetail : row.getOrderDetailList()) {
 | 
	
		
			
				|  |  |                      if (orderDetail.getType().equals(OrderDetailTypeEnum.MUSICAL)) {
 | 
	
		
			
				|  |  | -                        if(orderDetail.getKitGroupPurchaseType() != null && orderDetail.getKitGroupPurchaseType().equals(KitGroupPurchaseTypeEnum.LEASE)){
 | 
	
		
			
				|  |  | +                        if (orderDetail.getKitGroupPurchaseType() != null && orderDetail.getKitGroupPurchaseType().equals(KitGroupPurchaseTypeEnum.LEASE)) {
 | 
	
		
			
				|  |  |                              leaseFee = orderDetail.getPrice();
 | 
	
		
			
				|  |  | -                        }else {
 | 
	
		
			
				|  |  | +                        } else {
 | 
	
		
			
				|  |  |                              musicalFee = orderDetail.getPrice();
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      } else if (orderDetail.getType().equals(OrderDetailTypeEnum.COURSE)) {
 | 
	
	
		
			
				|  | @@ -477,7 +477,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            if(row.getGoodsList() != null){
 | 
	
		
			
				|  |  | +            if (row.getGoodsList() != null) {
 | 
	
		
			
				|  |  |                  goodsName = row.getGoodsList().stream().map(Goods::getName).collect(Collectors.joining("|"));
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              row.setCourseFee(courseFee);
 | 
	
	
		
			
				|  | @@ -514,24 +514,24 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                          row.setSporadicType("乐器更换");
 | 
	
		
			
				|  |  |                      } else if (row.getChargeType().equals(4)) {
 | 
	
		
			
				|  |  |                          row.setSporadicType("配件销售");
 | 
	
		
			
				|  |  | -                    }else if (row.getChargeType().equals(5)) {
 | 
	
		
			
				|  |  | +                    } else if (row.getChargeType().equals(5)) {
 | 
	
		
			
				|  |  |                          row.setSporadicType("维修费");
 | 
	
		
			
				|  |  | -                    }else if (row.getChargeType().equals(6)) {
 | 
	
		
			
				|  |  | +                    } else if (row.getChargeType().equals(6)) {
 | 
	
		
			
				|  |  |                          row.setSporadicType("福袋活动");
 | 
	
		
			
				|  |  | -                    }else if (row.getChargeType().equals(7)) {
 | 
	
		
			
				|  |  | +                    } else if (row.getChargeType().equals(7)) {
 | 
	
		
			
				|  |  |                          row.setSporadicType("上门费");
 | 
	
		
			
				|  |  | -                    }else if (row.getChargeType().equals(9)) {
 | 
	
		
			
				|  |  | +                    } else if (row.getChargeType().equals(9)) {
 | 
	
		
			
				|  |  |                          row.setSporadicType("账户充值");
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  School userSchool = musicGroupDao.findUserSchool(row.getUserId());
 | 
	
		
			
				|  |  | -                if(userSchool!= null){
 | 
	
		
			
				|  |  | +                if (userSchool != null) {
 | 
	
		
			
				|  |  |                      row.setSchoolName(userSchool.getName());
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -            }else if (row.getGroupType().equals(GroupType.PRACTICE)) {
 | 
	
		
			
				|  |  | +            } else if (row.getGroupType().equals(GroupType.PRACTICE)) {
 | 
	
		
			
				|  |  |                  row.setCourseFee(row.getActualAmount());
 | 
	
		
			
				|  |  |                  School userSchool = musicGroupDao.findUserSchool(row.getUserId());
 | 
	
		
			
				|  |  | -                if(userSchool!= null){
 | 
	
		
			
				|  |  | +                if (userSchool != null) {
 | 
	
		
			
				|  |  |                      row.setSchoolName(userSchool.getName());
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  PracticeCourseDto practiceGroup = practiceGroupDao.findByGroupId(Integer.parseInt(row.getMusicGroupId()));
 | 
	
	
		
			
				|  | @@ -555,9 +555,9 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              String[] header = {"序号", "学生姓名", "交易流水号", "订单编号", "收款渠道", "收款账户", "支付金额", "到账时间",
 | 
	
		
			
				|  |  | -                    "关联乐团ID/VIP课ID", "课程形态", "课程费用","减免费用","押金", "乐器", "教辅费用", "零星收款费用", "零星收款类别", "手续费", "专业", "分部", "单位/学校","合作机构","备注"};
 | 
	
		
			
				|  |  | +                    "关联乐团ID/VIP课ID", "课程形态", "课程费用", "减免费用", "押金", "乐器", "教辅费用", "零星收款费用", "零星收款类别", "手续费", "专业", "分部", "单位/学校", "合作机构", "备注"};
 | 
	
		
			
				|  |  |              String[] body = {"id", "user.username", "transNo", "orderNo", "paymentChannel", "merNos", "actualAmount", "payTime", "musicGroupId",
 | 
	
		
			
				|  |  | -                    "groupType.desc", "courseFee","remitFee", "leaseFee", "musicalFee", "teachingFee", "sporadicAmount", "sporadicType", "transferFee", "subjectName", "organName", "schoolName","cooperationOrganName", "memo"};
 | 
	
		
			
				|  |  | +                    "groupType.desc", "courseFee", "remitFee", "leaseFee", "musicalFee", "teachingFee", "sporadicAmount", "sporadicType", "transferFee", "subjectName", "organName", "schoolName", "cooperationOrganName", "memo"};
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(header, body, studentPaymentOrderExportDtos);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
	
		
			
				|  | @@ -638,9 +638,10 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |              Employee employee = employeeDao.get(sysUser.getId());
 | 
	
		
			
				|  |  |              queryInfo.setOrganId(employee.getOrganIdList());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        queryInfo.setIsExport(1);
 | 
	
		
			
				|  |  |          queryInfo.setRows(99999);
 | 
	
		
			
				|  |  |          PageInfo<CourseReviewDto> practiceGroupReviews = courseReviewService.findPracticeGroupReviews(queryInfo);
 | 
	
		
			
				|  |  | -        if(practiceGroupReviews.getTotal() <= 0){
 | 
	
		
			
				|  |  | +        if (practiceGroupReviews.getTotal() <= 0) {
 | 
	
		
			
				|  |  |              response.setStatus(500);
 | 
	
		
			
				|  |  |              response.setContentType("Content-Type: application/json;charset=UTF-8");
 | 
	
		
			
				|  |  |              response.getOutputStream().write("{\"data\": null, \"code\": 500, \"status\": false, \"msg\": \"没有可导出的记录\"}".getBytes());
 | 
	
	
		
			
				|  | @@ -663,20 +664,26 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                  if (row.getCreateTime() != null) {
 | 
	
		
			
				|  |  |                      row.setCreateTimeStr(DateUtil.dateToString(row.getCreateTime(), "yyyy-MM-dd"));
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if(row.getPronunciation() != null){
 | 
	
		
			
				|  |  | -                    row.setPronunciationStr(row.getPronunciation()+"星");
 | 
	
		
			
				|  |  | +                if (row.getPronunciation() != null) {
 | 
	
		
			
				|  |  | +                    row.setPronunciationStr(row.getPronunciation() + "星");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if(row.getTempo() != null){
 | 
	
		
			
				|  |  | -                    row.setTempoStr(row.getTempo()+"星");
 | 
	
		
			
				|  |  | +                if (row.getTempo() != null) {
 | 
	
		
			
				|  |  | +                    row.setTempoStr(row.getTempo() + "星");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if(row.getMusicTheory() != null){
 | 
	
		
			
				|  |  | -                    row.setMusicTheoryStr(row.getMusicTheory()+"星");
 | 
	
		
			
				|  |  | +                if (row.getMusicTheory() != null) {
 | 
	
		
			
				|  |  | +                    row.setMusicTheoryStr(row.getMusicTheory() + "星");
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                if (row.getHomeWorkReplied() != null && row.getHomeWorkReplied().equals("1")) {
 | 
	
		
			
				|  |  | +                    row.setHomeWorkReplied("已回复");
 | 
	
		
			
				|  |  | +                } else if (row.getHandHomework() != null && row.getHandHomework() > 0) {
 | 
	
		
			
				|  |  | +                    row.setHomeWorkReplied("未回复");
 | 
	
		
			
				|  |  | +                }else {
 | 
	
		
			
				|  |  | +                    row.setHomeWorkReplied(null);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            String[] header = {"分部", "上课日期", "学生编号", "课程班名称", "老师", "教材内容", "发音", "节奏", "乐理", "曲目", "评价备注", "回访日期(布置作业)", "完成app双向沟通", "是否提交作业", "教务老师", "教务评价"};
 | 
	
		
			
				|  |  | -            String[] body = {"organName", "classDateStr", "studentId", "courseName", "teacherName", "teachingMaterial", "pronunciationStr", "tempoStr", "musicTheoryStr", "song", "memo", "createTimeStr", "hasLiaison", "handHomeworkStr", "eduTeacherName", "courseReview"};
 | 
	
		
			
				|  |  | +            String[] header = {"分部", "上课日期", "学生编号", "课程班名称", "老师", "教材内容", "发音", "节奏", "乐理", "曲目", "评价备注", "回访日期(布置作业)", "完成app双向沟通", "是否提交作业","是否回复作业", "教务老师", "教务评价"};
 | 
	
		
			
				|  |  | +            String[] body = {"organName", "classDateStr", "studentId", "courseName", "teacherName", "teachingMaterial", "pronunciationStr", "tempoStr", "musicTheoryStr", "song", "memo", "createTimeStr", "hasLiaison", "handHomeworkStr","homeWorkReplied", "eduTeacherName", "courseReview"};
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(header, body, practiceGroupReviews.getRows());
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 |