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