deason 8 月之前
父节点
当前提交
668dc4f2e4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/qmth/exam/reserve/cache/impl/ApplyTaskCacheService.java

+ 3 - 0
src/main/java/com/qmth/exam/reserve/cache/impl/ApplyTaskCacheService.java

@@ -57,6 +57,9 @@ public class ApplyTaskCacheService implements CacheConstants {
      * 获取当前启用的预约任务缓存
      */
     public CurrentApplyTaskVO currentApplyTask(Long orgId) {
+        if (orgId == null) {
+            throw new RuntimeException("参数orgId值不能为空");
+        }
         String cacheKey = String.format(CACHE_CURRENT_APPLY_TASK, orgId);
         CurrentApplyTaskVO value = redisClient.get(cacheKey, CurrentApplyTaskVO.class);
         if (value != null) {