|
@@ -280,8 +280,8 @@ public class UserController {
|
|
|
@PreAuthorize("@ss.hasPermission('system:user:query')")
|
|
|
public CommonResult<UserRespVO> getUser(@RequestParam("id") Long id) {
|
|
|
AdminUserDO user = userService.getUser(id);
|
|
|
- //毕业生专属
|
|
|
- if (user.getSupervisorId() != null && Objects.equals(user.getUserType(), "2")) {
|
|
|
+ //添加导师名称
|
|
|
+ if (user.getSupervisorId() != null && (Objects.equals(user.getUserType(), "1") || Objects.equals(user.getUserType(), "2"))) {
|
|
|
AdminUserDO supervisorUser = userService.getUser(user.getSupervisorId());
|
|
|
String supervisor = supervisorUser.getNickname();
|
|
|
user.setSupervisor(supervisor);
|
|
@@ -336,7 +336,7 @@ public class UserController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- //在校生导入
|
|
|
+ //在校生导入//没用
|
|
|
@GetMapping("/get-import-StudentTemplate")
|
|
|
@Operation(summary = "获得在校生考勤人员下发模板")
|
|
|
public void importStudentTemplate(HttpServletResponse response) throws IOException {
|
|
@@ -371,7 +371,7 @@ public class UserController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- //毕业生
|
|
|
+ //毕业生在用,不过没必要
|
|
|
@GetMapping("/get-import-GraduateStudentTemplate")
|
|
|
@Operation(summary = "获得毕业生模板")
|
|
|
public void importGraduateStudentTemplate(HttpServletResponse response) throws IOException {
|