|
@@ -290,4 +290,34 @@ public class ExamRecordCacheUtil {
|
|
|
public static Integer getForceFinish(Long recordId) {
|
|
|
return (Integer) redisUtil.get(RedisKeyHelper.examRecordCacheKey(recordId), "forceFinish");
|
|
|
}
|
|
|
+
|
|
|
+ public static void setStartTime(Long recordId, Date startTime) {
|
|
|
+ redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), "startTime", startTime);
|
|
|
+ examRecordService.dataUpdateMq(recordId, "start_time", startTime);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void setEndTime(Long recordId, Date endTime) {
|
|
|
+ redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), "endTime", endTime);
|
|
|
+ examRecordService.dataUpdateMq(recordId, "end_time", endTime);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void setOpeningSeconds(Long recordId, Integer openingSeconds) {
|
|
|
+ redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), "openingSeconds", openingSeconds);
|
|
|
+ examRecordService.dataUpdateMq(recordId, "opening_seconds", openingSeconds);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void setMinDurationSeconds(Long recordId, Integer minDurationSeconds) {
|
|
|
+ redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), minDurationSeconds, minDurationSeconds);
|
|
|
+ examRecordService.dataUpdateMq(recordId, "min_duration_seconds", minDurationSeconds);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void setMaxDurationSeconds(Long recordId, Integer maxDurationSeconds) {
|
|
|
+ redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), maxDurationSeconds, maxDurationSeconds);
|
|
|
+ examRecordService.dataUpdateMq(recordId, "max_duration_seconds", maxDurationSeconds);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void setForceFinish(Long recordId, Integer forceFinish) {
|
|
|
+ redisUtil.set(RedisKeyHelper.examRecordCacheKey(recordId), forceFinish, forceFinish);
|
|
|
+ examRecordService.dataUpdateMq(recordId, "force_finish", forceFinish);
|
|
|
+ }
|
|
|
}
|