Crazy 1 day ago
parent
commit
c037dd65e3

+ 7 - 2
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/studentSelectSupervisorRecord/StudentSelectSupervisorRecordController.java

@@ -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();