haogh 1 년 전
부모
커밋
df90776b77
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/qmth/exam/reserve/service/impl/StudentApplyServiceImpl.java

+ 1 - 1
src/main/java/com/qmth/exam/reserve/service/impl/StudentApplyServiceImpl.java

@@ -571,7 +571,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
         if (student == null) {
             throw new StatusException(" 考生信息填写错误");
         }
-        if (student.getApplyTaskId().equals(task.getId())) {
+        if (!student.getApplyTaskId().equals(task.getId())) {
             throw new StatusException(" 当前任务下不存在该考生");
         }
         return student;