update:批量删除

This commit is contained in:
ltx 2026-10-15 16:09:35 +08:00
parent 48151578a1
commit 9d2573b9c3

View File

@ -437,9 +437,6 @@ namespace VOL.Business.Services.School
public async Task<int> BatchDeleteStudents(List<int> ids)
{
if (UserContext.Current.RoleId != 1 && UserContext.Current.RoleId != 2)
throw new Exception("仅管理员可以批量删除学生");
if (UserContext.Current.RoleId != 1)
{
var menuIds = await _studentRepository.DbContext.Set<Sys_Menu>()