|
@@ -156,12 +156,13 @@ public class ArticleVideoAuditService {
|
|
|
return null;
|
|
|
}
|
|
|
String dateStr = DateUtils.getCurrentDateStr("yyyyMMdd");
|
|
|
- for (Map.Entry<String, Integer> entry : dailyAuditPoolCount.entrySet()) {
|
|
|
- String poolLevel = entry.getKey();
|
|
|
+ Set<String> keySet = dailyAuditPoolCount.keySet();
|
|
|
+ keySet = keySet.stream().sorted().collect(Collectors.toCollection(LinkedHashSet::new));
|
|
|
+ for (String poolLevel : keySet) {
|
|
|
if (excludePoolLevel.contains(poolLevel)) {
|
|
|
continue;
|
|
|
}
|
|
|
- int target = entry.getValue();
|
|
|
+ int target = dailyAuditPoolCount.get(poolLevel);
|
|
|
String key = "article_audit_count_" + dateStr + "_" + poolLevel;
|
|
|
int totalCount = Integer.parseInt(Optional.ofNullable(redisTemplate.opsForValue().get(key)).orElse("0"));
|
|
|
if (target > totalCount) {
|