|
@@ -83,12 +83,7 @@ public class StudentApplyRecordJob {
|
|
|
String msg = String.format("%s_%s_%s_%s", bean.getStudentId(), bean.getExamSiteId(),
|
|
|
bean.getTimePeriodId(), bean.getCancel());
|
|
|
if (existEntity != null) {
|
|
|
- if (!existEntity.getCancel()) {
|
|
|
- log.info("{} 预约已存在,跳过!", msg);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- // 存在“已取消”预约记录,则恢复预约
|
|
|
+ // 存在预约记录,则修改
|
|
|
LambdaUpdateWrapper<StudentApplyEntity> updateWrapper = new LambdaUpdateWrapper<>();
|
|
|
updateWrapper.set(StudentApplyEntity::getCancel, bean.getCancel());
|
|
|
updateWrapper.set(StudentApplyEntity::getOperateId, bean.getOperateId());
|
|
@@ -97,7 +92,7 @@ public class StudentApplyRecordJob {
|
|
|
studentApplyService.update(updateWrapper);
|
|
|
log.info("{} 预约修改!", msg);
|
|
|
} else {
|
|
|
- // 不存在则新增预约记录
|
|
|
+ // 不存在预约记录,则新增
|
|
|
StudentApplyEntity entity = new StudentApplyEntity();
|
|
|
entity.setStudentId(bean.getStudentId());
|
|
|
entity.setExamSiteId(bean.getExamSiteId());
|