|
@@ -72,15 +72,15 @@ public class ZsjyInternshipDailyController extends BaseController {
|
|
|
*/
|
|
*/
|
|
|
@Operation(summary = "获取学生考勤日历", description = "查看指定学生的考勤日历数据")
|
|
@Operation(summary = "获取学生考勤日历", description = "查看指定学生的考勤日历数据")
|
|
|
@SaCheckPermission("zsjy:internshipdaily:calendar")
|
|
@SaCheckPermission("zsjy:internshipdaily:calendar")
|
|
|
- @GetMapping("/calendar/{studentId}")
|
|
|
|
|
|
|
+ @GetMapping("/calendar")
|
|
|
public R<List<Map<String, Object>>> getCalendar(
|
|
public R<List<Map<String, Object>>> getCalendar(
|
|
|
- @Parameter(description = "学生ID", required = true) @PathVariable Long studentId,
|
|
|
|
|
|
|
+ @Parameter(description = "学生ID", required = true) @RequestParam Long studentId,
|
|
|
@Parameter(description = "年份") @RequestParam(required = false) Integer year,
|
|
@Parameter(description = "年份") @RequestParam(required = false) Integer year,
|
|
|
@Parameter(description = "月份") @RequestParam(required = false) Integer month) {
|
|
@Parameter(description = "月份") @RequestParam(required = false) Integer month) {
|
|
|
|
|
|
|
|
log.info("=== Controller层调试 ===");
|
|
log.info("=== Controller层调试 ===");
|
|
|
- log.info("接口被调用: /zsjy/internship/daily/calendar/{}", studentId);
|
|
|
|
|
- log.info("查询年月: {}-{}", year, month);
|
|
|
|
|
|
|
+ log.info("接口被调用: /zsjy/internship/daily/calendar");
|
|
|
|
|
+ log.info("学生ID: {}, 查询年月: {}-{}", studentId, year, month);
|
|
|
|
|
|
|
|
return dailyService.getCalendarData(studentId, year, month);
|
|
return dailyService.getCalendarData(studentId, year, month);
|
|
|
}
|
|
}
|