|
@@ -232,15 +232,16 @@ public class StudentSelectSupervisorRecordController {
|
|
|
//更新志愿
|
|
|
UserSaveReqVO saveReqVO = new UserSaveReqVO();
|
|
|
saveReqVO.setId(record.getStudentId());
|
|
|
- System.out.println(updateReqVO.getSupervisorId());
|
|
|
+
|
|
|
+// 设置导师id和校外导师id
|
|
|
if (updateReqVO.getSupervisorId() != null) {
|
|
|
AdminUserDO supervisor = adminUserService.getUser(updateReqVO.getSupervisorId());
|
|
|
if (supervisor != null) {
|
|
|
- if (supervisor.getUserType().equals("3")) {
|
|
|
+ if (supervisor.getUserType().equals("3")) { //如果是校内导师
|
|
|
saveReqVO.setSupervisorId(updateReqVO.getSupervisorId());
|
|
|
- } else if (supervisor.getUserType().equals("5")) {
|
|
|
+ } else if (supervisor.getUserType().equals("5")) {//如果是校外导师
|
|
|
saveReqVO.setExternalSupervisorId(updateReqVO.getSupervisorId());
|
|
|
-// //校外导师的合作导师
|
|
|
+ //还要添加校内导师的id(直接就是校外导师的合作导师)
|
|
|
if (supervisor.getSupervisorId() != null && supervisor.getSupervisorId() != 0) {
|
|
|
saveReqVO.setSupervisorId(supervisor.getSupervisorId());
|
|
|
}
|
|
@@ -484,19 +485,12 @@ public class StudentSelectSupervisorRecordController {
|
|
|
userSaveReqVO.setIntroduction(updateVo.getIntroduction());//用户简历
|
|
|
}
|
|
|
|
|
|
- StudentSelectSupervisorRecordSaveReqVO recordUpdateReqVO =new StudentSelectSupervisorRecordSaveReqVO();
|
|
|
if (roleIds.contains(112L)){
|
|
|
if (updateVo.getMobile()!=null&&!updateVo.getMobile().isEmpty()){
|
|
|
userSaveReqVO.setMobile(updateVo.getMobile());
|
|
|
}
|
|
|
|
|
|
}else if (roleIds.contains(113L)){//导师
|
|
|
- //导师提交签名,通过的时候提交
|
|
|
-// if (updateVo.getSupervisorSignature()!=null&&!updateVo.getSupervisorSignature().isEmpty()) {
|
|
|
-// recordUpdateReqVO.setId(updateVo.getId());
|
|
|
-// recordUpdateReqVO.setStudentSignature(updateVo.getSupervisorSignature());
|
|
|
-// studentSelectSupervisorRecordService.updateStudentSelectSupervisorRecord(recordUpdateReqVO);
|
|
|
-// }
|
|
|
//导师填写信息
|
|
|
//1.研究方向
|
|
|
if (updateVo.getMajor()!=null&&!updateVo.getMajor().isEmpty()){
|
|
@@ -506,8 +500,14 @@ public class StudentSelectSupervisorRecordController {
|
|
|
if (updateVo.getTitle()!=null&&!updateVo.getTitle().isEmpty()){
|
|
|
userSaveReqVO.setTitle(updateVo.getTitle());
|
|
|
}
|
|
|
- //学生成果要求,和名额填写
|
|
|
-
|
|
|
+ if (updateVo.getWorkPlace()!=null&&!updateVo.getWorkPlace().isEmpty()){
|
|
|
+ userSaveReqVO.setWorkPlace(updateVo.getWorkPlace());
|
|
|
+ }
|
|
|
+ //设置合作的校内导师id
|
|
|
+ if (updateVo.getSupervisorId()!=null){
|
|
|
+ userSaveReqVO.setSupervisorId(updateVo.getSupervisorId());
|
|
|
+ }
|
|
|
+ //学生成果要求
|
|
|
supervisorSelectionSettingDO setting = supervisorSelectionSettingService.getSettingBySupervisorIdAndProjectId(loginId,project.getId());
|
|
|
if (updateVo.getStudentAchievementRequirement()!=null&&!updateVo.getStudentAchievementRequirement().isEmpty()){
|
|
|
setting.setStudentAchievementRequirement(updateVo.getStudentAchievementRequirement());
|