用户区分教师与学生,分别的导入与导出

This commit is contained in:
ire 2024-12-30 16:32:36 +08:00
parent 3da84843b6
commit f83915ba91

View File

@ -145,7 +145,7 @@ public class UserController {
}
@GetMapping("/student/export")
@Operation(summary = "导出用户")
@Operation(summary = "导出学生")
@PreAuthorize("@ss.hasPermission('system:user:export')")
@ApiAccessLog(operateType = EXPORT)
public void exporStudent(@Validated UserPageReqVO exportReqVO,
@ -171,7 +171,7 @@ public class UserController {
}
@GetMapping("/teacher/export")
@Operation(summary = "导出用户")
@Operation(summary = "导出教师")
@PreAuthorize("@ss.hasPermission('system:user:export')")
@ApiAccessLog(operateType = EXPORT)
public void exporTeacher(@Validated UserPageReqVO exportReqVO,
@ -179,7 +179,7 @@ public class UserController {
exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<AdminUserDO> list = userService.getUserPage(exportReqVO).getList();
//将用户转换成学生的标头
//将用户转换成教师的标头
List<UserTeacherExcelVO> studentUserList = new ArrayList<>();
if (!list.isEmpty()) {
list.stream().forEach(sysUser ->{