|
@@ -51,10 +51,10 @@ public class FilterService {
|
|
|
List<FilterStrategy> strategies = getAllStrategies(param);
|
|
List<FilterStrategy> strategies = getAllStrategies(param);
|
|
|
String dateStr = DateUtils.getCurrentDateStr("yyyyMMdd");
|
|
String dateStr = DateUtils.getCurrentDateStr("yyyyMMdd");
|
|
|
String redisKey = RedisConstants.buildContentPreFilterJobKey(dateStr, param.getPlanId(), param.getAccountId());
|
|
String redisKey = RedisConstants.buildContentPreFilterJobKey(dateStr, param.getPlanId(), param.getAccountId());
|
|
|
|
|
+ String value = redisTemplate.opsForValue().get(redisKey);
|
|
|
|
|
|
|
|
// 已同步待发布内容 预过滤
|
|
// 已同步待发布内容 预过滤
|
|
|
if (!preFilter) {
|
|
if (!preFilter) {
|
|
|
- String value = redisTemplate.opsForValue().get(redisKey);
|
|
|
|
|
if (StringUtils.hasText(value)) {
|
|
if (StringUtils.hasText(value)) {
|
|
|
strategies = getUnPreFilterStrategies(param);
|
|
strategies = getUnPreFilterStrategies(param);
|
|
|
}
|
|
}
|
|
@@ -128,6 +128,9 @@ public class FilterService {
|
|
|
} else {
|
|
} else {
|
|
|
redisTemplate.opsForValue().set(redisKey, "1", 1, TimeUnit.DAYS);
|
|
redisTemplate.opsForValue().set(redisKey, "1", 1, TimeUnit.DAYS);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!preFilter && !StringUtils.hasText(value) && CollectionUtils.isEmpty(filterContents)) {
|
|
|
|
|
+ redisTemplate.opsForValue().set(redisKey, "1", 1, TimeUnit.DAYS);
|
|
|
|
|
+ }
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|