bug修复
This commit is contained in:
+5
-1
@@ -296,7 +296,11 @@ public class CourseRunningController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询当前教员可供调课的课次(学员队任务表 + 课表 + 课程表)。
|
||||
* 查询当前教员可供调课的课次。
|
||||
* <p>
|
||||
* 返回值对齐 {@code /adjust/submit} 入参:除事由、备注等需用户填写的项外,
|
||||
* 其余字段带出当前课次默认值。
|
||||
* </p>
|
||||
*/
|
||||
@GetMapping("/adjust/lessons")
|
||||
public Result<List<AdjustableLessonVO>> listAdjustableLessons(
|
||||
|
||||
+17
-7
@@ -7,7 +7,7 @@ import com.roomroot.jwgl.unit.PageQuery;
|
||||
import com.roomroot.jwgl.unit.PageResult;
|
||||
import com.roomroot.jwgl.unit.Result;
|
||||
import com.roomroot.jwgl.vo.kcb.ClassTimetableVO;
|
||||
import com.roomroot.jwgl.vo.kcb.DailyWeeklyTimetableVO;
|
||||
import com.roomroot.jwgl.vo.kcb.DailyWeeklyTimetableRangeVO;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -77,19 +77,29 @@ public class KCBController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 今日课表。未传年度时按当前时间取本学期,可按队别班次筛选。
|
||||
* 今日课表。可连续点上一天 / 下一天。
|
||||
* <p>
|
||||
* 首次不传参数查当天。之后把返回的 {@code rq} 回传,并传 offset:-1 上一天,1 下一天。
|
||||
* </p>
|
||||
*/
|
||||
@GetMapping("/today/list")
|
||||
public Result<List<DailyWeeklyTimetableVO>> listToday(TimetableQuery cond) {
|
||||
return Result.success(kcbService.listToday(cond));
|
||||
public Result<DailyWeeklyTimetableRangeVO> listToday(
|
||||
@RequestParam(value = "rq", required = false) String rq,
|
||||
@RequestParam(value = "offset", required = false) Integer offset) {
|
||||
return Result.success(kcbService.listToday(rq, offset));
|
||||
}
|
||||
|
||||
/**
|
||||
* 本周课表(周一至周日)。未传年度时按当前时间取本学期,可按队别班次筛选。
|
||||
* 本周课表(周一至周日)。可连续点上一周 / 下一周。
|
||||
* <p>
|
||||
* 首次不传参数查本周。之后把返回的 {@code rq} 回传,并传 offset:-1 上一周,1 下一周。
|
||||
* </p>
|
||||
*/
|
||||
@GetMapping("/week/list")
|
||||
public Result<List<DailyWeeklyTimetableVO>> listWeek(TimetableQuery cond) {
|
||||
return Result.success(kcbService.listWeek(cond));
|
||||
public Result<DailyWeeklyTimetableRangeVO> listWeek(
|
||||
@RequestParam(value = "rq", required = false) String rq,
|
||||
@RequestParam(value = "offset", required = false) Integer offset) {
|
||||
return Result.success(kcbService.listWeek(rq, offset));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user