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;