|
@@ -178,8 +178,13 @@ public class StudentSelectSupervisorRecordController {
|
|
|
return error(1, "该老师专硕名额已经满了");
|
|
|
}
|
|
|
}
|
|
|
- if (selectStatus==0){//未提交要新建
|
|
|
-
|
|
|
+ if (selectStatus==0){//未提交要新建直接同意
|
|
|
+ StudentSelectSupervisorRecordSaveReqVO createReqVO =new StudentSelectSupervisorRecordSaveReqVO();
|
|
|
+ createReqVO.setStudentId(student.getId());
|
|
|
+ createReqVO.setSupervisorId(updateReqVO.getSupervisorId());
|
|
|
+ createReqVO.setProjectId(project.getId());
|
|
|
+ createReqVO.setSelectType(2);
|
|
|
+ studentSelectSupervisorRecordService.createStudentSelectSupervisorRecord(createReqVO);
|
|
|
}else {
|
|
|
//更新志愿
|
|
|
UserSaveReqVO saveReqVO = new UserSaveReqVO();
|