|
@@ -6,10 +6,13 @@ import com.ym.mec.biz.service.StudentAttendanceService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
/**
|
|
|
* @Author Joburgess
|
|
|
* @Date 2019/9/24
|
|
@@ -24,6 +27,19 @@ public class StudentCourseScheduleController extends BaseController {
|
|
|
@Autowired
|
|
|
private StudentAttendanceService studentAttendanceService;
|
|
|
|
|
|
+ @ApiOperation(value = "根据月份获取乐团在该月有课的日期")
|
|
|
+ @GetMapping("/getCourseScheduleDateByMonth")
|
|
|
+ public Object getCourseScheduleDateByMonth(@ApiParam(value = "乐团编号", required = true) @RequestParam Long musicGroupID,
|
|
|
+ @ApiParam(value = "月份", required = true) @RequestParam Date month) {
|
|
|
+ return succeed(scheduleService.getCourseScheduleDateByMonth(musicGroupID,month));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "根据日期获取当日排课")
|
|
|
+ @GetMapping("/getCourseSchedulesWithDate")
|
|
|
+ public Object getCourseSchedulesWithDate(@ApiParam(value = "日期", required = true) Date date){
|
|
|
+ return succeed(scheduleService.getCourseSchedulesWithDate(date));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "课时调整")
|
|
|
@PostMapping(value = "/classStartDateAdjust",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
public Object classStartDateAdjust(ClassDateAdjustDto classDateAdjustDto){
|