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