浏览代码

rename oe cache keys..

deason 2 年之前
父节点
当前提交
f255ac3776

+ 0 - 34
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/ExamBossService.java

@@ -1,34 +0,0 @@
-package cn.com.qmth.examcloud.core.oe.admin.service;
-
-import cn.com.qmth.examcloud.support.examing.ExamBoss;
-
-/**
- * @Description 考试基础信息会话
- * @Author lideyin
- * @Date 2019/12/20 15:41
- * @Version 1.0
- */
-public interface ExamBossService {
-
-    /**
-     * @param examStudentId
-     * @param eb
-     */
-    public void saveExamBoss(Long examStudentId, ExamBoss eb);
-
-    /**
-     * 获取
-     *
-     * @param examStudentId
-     * @return
-     */
-    public ExamBoss getExamBoss(Long examStudentId);
-
-    /**
-     * 删除
-     *
-     * @param examStudentId
-     */
-    public void deleteExamBoss(Long examStudentId);
-
-}

+ 0 - 40
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/impl/ExamBossServiceImpl.java

@@ -1,40 +0,0 @@
-package cn.com.qmth.examcloud.core.oe.admin.service.impl;
-
-import cn.com.qmth.examcloud.core.oe.admin.service.ExamBossService;
-import cn.com.qmth.examcloud.support.examing.ExamBoss;
-import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
-import cn.com.qmth.examcloud.web.redis.RedisClient;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-/**
- * @Description 考试基础信息会话
- * @Author lideyin
- * @Date 2019/12/20 15:40
- * @Version 1.0
- */
-@Service("examBossService")
-public class ExamBossServiceImpl implements ExamBossService {
-
-    @Autowired
-    private RedisClient redisClient;
-
-    @Override
-    public void saveExamBoss(Long examStudentId, ExamBoss eb) {
-        String key = RedisKeyHelper.getBuilder().examBossKey(examStudentId);
-        redisClient.set(key, eb, 2592000);
-    }
-
-    @Override
-    public ExamBoss getExamBoss(Long examStudentId) {
-        String key = RedisKeyHelper.getBuilder().examBossKey(examStudentId);
-        return redisClient.get(key, ExamBoss.class);
-    }
-
-    @Override
-    public void deleteExamBoss(Long examStudentId) {
-        String key = RedisKeyHelper.getBuilder().examBossKey(examStudentId);
-        redisClient.delete(key);
-    }
-
-}

+ 1 - 1
examcloud-core-oe-admin-service/src/main/java/cn/com/qmth/examcloud/core/oe/admin/service/impl/ExamStatisticServiceImpl.java

@@ -59,7 +59,7 @@ public class ExamStatisticServiceImpl implements ExamStatisticService {
 
     @Override
     public void refresh(Long examId, Long courseId) {
-        final String cacheKey = String.format(CacheConstants.CACHE_OE_SCORE_STATISTIC, examId, courseId);
+        final String cacheKey = CacheConstants.CACHE_OE_SCORE_STATISTIC_STATUS + examId + "_" + courseId;
         Boolean running = redisClient.get(cacheKey, Boolean.class);
         if (running != null) {
             throw new StatusException("500", "统计计算中,请稍后查询结果!");