|
@@ -349,12 +349,15 @@ public class studentSelectionProjectController {
|
|
|
if (project==null) {
|
|
|
return error(1,"还没有创建互选项目");
|
|
|
}
|
|
|
-
|
|
|
List<Long> supervisorIds = project.getSupervisorIds();
|
|
|
Set<Long> newSupervisorIds = new HashSet<>(supervisorIds);
|
|
|
List<AdminUserDO> supervisors = adminUserService.getUserList(newSupervisorIds);
|
|
|
|
|
|
- return success(supervisors);
|
|
|
+ List<AdminUserDO> filteredSupervisors = supervisors.stream()
|
|
|
+ .filter(supervisor -> supervisor.getUserType().equals("3"))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+
|
|
|
+ return success(filteredSupervisors);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/getStudentSelectExternalSupervisorsList")
|