Browse Source

bug修改

chenweida 8 năm trước cách đây
mục cha
commit
51edb3b218

+ 3 - 1
patient-co-statistics/src/main/java/com/yihu/wlyy/statistics/job/business/CurrentDayAllQuotaJob.java

@ -209,7 +209,9 @@ public class CurrentDayAllQuotaJob implements Job {
        initCurrentExpire();//初始化生命周期
        for (String key : RedisStorage.keys) {
            redisTemplate.expire(key, Integer.valueOf(currentExpire), TimeUnit.HOURS);//2小时过期
            if (!StringUtils.isEmpty(key)) {
                redisTemplate.expire(key, Integer.valueOf(currentExpire), TimeUnit.HOURS);//2小时过期}
            }
        }
        CachePool.addKeys(RedisStorage.keys);//缓存key