haogh 7 months ago
parent
commit
1ae02c96af

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

@@ -1209,6 +1209,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
                 baseMapper.insert(studentApply);
             } else if (existStudentApply.getCancel()) { //数据库中存在,但已取消
                 existStudentApply.setCancel(Boolean.FALSE);
+                existStudentApply.setOperateId(studentApply.getOperateId());
                 baseMapper.updateById(existStudentApply);
             } else { // 数据库中已存在预约信息
                 return false;
@@ -1220,6 +1221,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
         if (studentApplyRecord.getCancel()) {
             if (existStudentApply != null) {
                 existStudentApply.setCancel(Boolean.FALSE);
+                existStudentApply.setOperateId(studentApply.getOperateId());
                 baseMapper.updateById(existStudentApply);
             } else {
                 baseMapper.insert(studentApply);