|
@@ -4,7 +4,6 @@ import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.biz.dal.dto.ClassDateAdjustDto;
|
|
import com.ym.mec.biz.dal.dto.ClassDateAdjustDto;
|
|
import com.ym.mec.biz.dal.entity.CourseSchedule;
|
|
import com.ym.mec.biz.dal.entity.CourseSchedule;
|
|
-import com.ym.mec.biz.dal.page.CourseScheduleQueryInfo;
|
|
|
|
import com.ym.mec.biz.service.CourseScheduleService;
|
|
import com.ym.mec.biz.service.CourseScheduleService;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.education.base.BaseResponse;
|
|
import com.ym.mec.education.base.BaseResponse;
|
|
@@ -15,14 +14,12 @@ import com.ym.mec.education.resp.CourseScheduleResp;
|
|
import com.ym.mec.education.service.ICourseScheduleService;
|
|
import com.ym.mec.education.service.ICourseScheduleService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
-import io.swagger.annotations.ApiParam;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
-import java.util.Date;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
@@ -70,22 +67,12 @@ public class CourseScheduleController {
|
|
return courseScheduleService.courseInfo(courseScheduleReq);
|
|
return courseScheduleService.courseInfo(courseScheduleReq);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "根据月份获取乐团在该月有课的日期")
|
|
|
|
- @GetMapping("/getCourseScheduleDateByMonth")
|
|
|
|
- public Object getCourseScheduleDateByMonth(Date month) {
|
|
|
|
|
|
+ public Object getCourseScheduleDateByMonth(@ApiParam(value = "月份", required = true) @RequestParam Date month) {
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
if (null == user) {
|
|
if (null == user) {
|
|
throw new BizException("请登录");
|
|
throw new BizException("请登录");
|
|
}
|
|
}
|
|
- return BaseResponse.success(scheduleService.getCourseScheduleDates(month));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "根据日期获取当日排课")
|
|
|
|
- @GetMapping("/getCourseSchedulesWithDate")
|
|
|
|
- public Object getCourseSchedulesWithDate(CourseScheduleQueryInfo queryInfo) {
|
|
|
|
- return BaseResponse.success(scheduleService.getCourseSchedulesWithDateByEdu(queryInfo));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
@ApiOperation(value = "课时调整")
|
|
@ApiOperation(value = "课时调整")
|
|
@PostMapping(value = "/classStartDateAdjust")
|
|
@PostMapping(value = "/classStartDateAdjust")
|
|
public Object classStartDateAdjust(ClassDateAdjustDto classDateAdjustDto){
|
|
public Object classStartDateAdjust(ClassDateAdjustDto classDateAdjustDto){
|