后端考勤:增加课次学员考勤名册查询

This commit is contained in:
wangzhibiao committed 2026-09-21 23:21:29 +08:00
1 parent b716e55ac7
commit 18b8a07f55
4 files changed
+354

No files matched your search

@@ -3,6 +3,7 @@ package com.ruoyi.web.controller.train;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
@@ -70,4 +71,14 @@ public class AttendanceController extends BaseController
attendanceAppService.adjust(checkinId, dto, SecurityUtils.getUsername());
return success();
}
/**
* 查询课次学员考勤名册 (纯只读,供培训管理员点名签到)。
*/
@PreAuthorize("@ss.hasPermi('train:attendance:list')")
@GetMapping("/lessons/{lessonId}/roster")
public AjaxResult getLessonRoster(@PathVariable Long lessonId)
{
return success(attendanceAppService.getLessonRoster(lessonId));
}
}