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