|
@@ -2,10 +2,12 @@ package com.ym.mec.web.controller;
|
|
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.biz.dal.dao.ClassGroupStudentMapperDao;
|
|
import com.ym.mec.biz.dal.dao.ClassGroupStudentMapperDao;
|
|
|
|
|
+import com.ym.mec.biz.dal.dto.HasFreeCourseTimesDto;
|
|
|
import com.ym.mec.biz.dal.dto.MusicGroupPaymentBaseCalender;
|
|
import com.ym.mec.biz.dal.dto.MusicGroupPaymentBaseCalender;
|
|
|
import com.ym.mec.biz.dal.dto.MusicGroupPaymentCalenderDto;
|
|
import com.ym.mec.biz.dal.dto.MusicGroupPaymentCalenderDto;
|
|
|
import com.ym.mec.biz.dal.entity.StudentRegistration;
|
|
import com.ym.mec.biz.dal.entity.StudentRegistration;
|
|
|
import com.ym.mec.biz.dal.enums.ClassGroupStudentStatusEnum;
|
|
import com.ym.mec.biz.dal.enums.ClassGroupStudentStatusEnum;
|
|
|
|
|
+import com.ym.mec.biz.dal.page.BaseOrganQueryInfo;
|
|
|
import com.ym.mec.biz.dal.page.MusicGroupPaymentCalenderQueryInfo;
|
|
import com.ym.mec.biz.dal.page.MusicGroupPaymentCalenderQueryInfo;
|
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderCourseSettingsService;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderCourseSettingsService;
|
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
@@ -13,6 +15,8 @@ import com.ym.mec.biz.service.OrganizationService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
|
|
+import com.ym.mec.common.page.PageInfo;
|
|
|
|
|
+import com.ym.mec.common.page.QueryInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -169,4 +173,12 @@ public class MusicGroupPaymentCalenderController extends BaseController {
|
|
|
}
|
|
}
|
|
|
return succeed(musicGroupPaymentCalenderCourseSettingsService.getMusicCourseSettingsWithStudents(musicGroupId,studentIdList));
|
|
return succeed(musicGroupPaymentCalenderCourseSettingsService.getMusicCourseSettingsWithStudents(musicGroupId,studentIdList));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation(value = "学员已排课时长未消耗完")
|
|
|
|
|
+ @GetMapping("/queryHasFreeCourseTimesStudent")
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('musicGroupPaymentCalender/queryHasFreeCourseTimesStudent')")
|
|
|
|
|
+ public HttpResponseResult<PageInfo<HasFreeCourseTimesDto>> queryHasFreeCourseTimesStudent(BaseOrganQueryInfo queryInfo) {
|
|
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
|
|
+ return succeed(musicGroupPaymentCalenderService.queryHasFreeCourseTimesStudent(queryInfo));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|