|
@@ -72,8 +72,14 @@ public class UserController {
|
|
|
|
|
|
@PutMapping("/updateInnerSupervisor")
|
|
|
@Operation(summary = "修改校内导师")
|
|
|
- public CommonResult<Boolean> updateInnerSupervisor(@RequestParam("updateVO") List<Map<String, Long>> updateVO ) {
|
|
|
- userService.updateInnerSupervisor(updateVO);
|
|
|
+ public CommonResult<Boolean> updateInnerSupervisor(@RequestBody Map<String, List<Map<String, Long>>> request) {
|
|
|
+ List<Map<String, Long>> updateVO = request.get("updateVO");
|
|
|
+ if (updateVO == null) {
|
|
|
+ return error(1,"更新失败");
|
|
|
+ }
|
|
|
+ for (Map<String, Long> re:updateVO){
|
|
|
+ userService.updateInnerSupervisor(re.get("studentId"),re.get("supervisorId"));
|
|
|
+ }
|
|
|
return success(true);
|
|
|
}
|
|
|
|
|
@@ -384,7 +390,7 @@ public class UserController {
|
|
|
if ((user.getGrade() != null && !user.getGrade().isEmpty())&&user.getUserType().equals("3")||user.getUserType().equals("5")){
|
|
|
//导师学生成果要求
|
|
|
supervisorSelectionSettingDO settingDO = supervisorSelectionSettingService.getSettingBySupervisorIdAndProjectId(id,project.getId());
|
|
|
- if (settingDO!=null) {
|
|
|
+ if(settingDO != null){
|
|
|
user.setStudentAchievementRequirement(settingDO.getStudentAchievementRequirement());
|
|
|
}
|
|
|
}
|