|
@@ -229,9 +229,7 @@ public class TEExamController {
|
|
teExamActivity.setUpdateId(tbUser.getId());
|
|
teExamActivity.setUpdateId(tbUser.getId());
|
|
}
|
|
}
|
|
teExamActivityService.saveOrUpdate(teExamActivity);
|
|
teExamActivityService.saveOrUpdate(teExamActivity);
|
|
- if (Objects.isNull(teExamActivityService.updateExamActivityCacheBean(teExamActivity.getId()))) {
|
|
|
|
- teExamActivityService.deleteExamActivityCacheBean(teExamActivity.getId());
|
|
|
|
- }
|
|
|
|
|
|
+ teExamActivityService.deleteExamActivityCacheBean(teExamActivity.getId());
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
@@ -255,9 +253,7 @@ public class TEExamController {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (Objects.isNull(teExamService.updateExamCacheBean(teExam.getId()))) {
|
|
|
|
- teExamService.deleteExamCacheBean(teExam.getId());
|
|
|
|
- }
|
|
|
|
|
|
+ teExamService.deleteExamCacheBean(teExam.getId());
|
|
examPaperService.disposeObjectiveAnswer(teExam.getId());
|
|
examPaperService.disposeObjectiveAnswer(teExam.getId());
|
|
return ResultUtil.ok(true);
|
|
return ResultUtil.ok(true);
|
|
}
|
|
}
|
|
@@ -338,9 +334,7 @@ public class TEExamController {
|
|
teExam.setEnable(enable);
|
|
teExam.setEnable(enable);
|
|
teExam.setUpdateId(tbUser.getId());
|
|
teExam.setUpdateId(tbUser.getId());
|
|
teExamService.updateById(teExam);
|
|
teExamService.updateById(teExam);
|
|
- if (Objects.isNull(teExamService.updateExamCacheBean(teExam.getId()))) {
|
|
|
|
- teExamService.deleteExamCacheBean(teExam.getId());
|
|
|
|
- }
|
|
|
|
|
|
+ teExamService.deleteExamCacheBean(teExam.getId());
|
|
return ResultUtil.ok(true);
|
|
return ResultUtil.ok(true);
|
|
}
|
|
}
|
|
|
|
|