update:批量删除
This commit is contained in:
parent
48151578a1
commit
9d2573b9c3
@ -437,9 +437,6 @@ namespace VOL.Business.Services.School
|
|||||||
|
|
||||||
public async Task<int> BatchDeleteStudents(List<int> ids)
|
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)
|
if (UserContext.Current.RoleId != 1)
|
||||||
{
|
{
|
||||||
var menuIds = await _studentRepository.DbContext.Set<Sys_Menu>()
|
var menuIds = await _studentRepository.DbContext.Set<Sys_Menu>()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user