deason 8 ヶ月 前
コミット
668dc4f2e4

+ 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) {