|
|
@@ -420,7 +420,7 @@ public class ContentScreenJob {
|
|
|
jsonObject.put(strategyName, result);
|
|
|
}
|
|
|
}
|
|
|
- log.info("titleAnalyseStrategy jsonObject is {}" ,jsonObject.toJSONString());
|
|
|
+ log.info("titleAnalyseStrategy jsonObject is {}", jsonObject.toJSONString());
|
|
|
if (jsonObject.isEmpty()) {
|
|
|
SpiderContent updateContent = new SpiderContent();
|
|
|
updateContent.setId(content.getId());
|
|
|
@@ -463,13 +463,13 @@ public class ContentScreenJob {
|
|
|
Long lastTime = LocalDateTime.now().minusDays(lastDays).atZone(ZoneId.systemDefault())
|
|
|
.toInstant()
|
|
|
.toEpochMilli();
|
|
|
- XxlJobLogger.log("articleAnalyseConfigDTO config is " + articleAnalyseConfigDTO);
|
|
|
+ XxlJobLogger.log("articleAnalyseConfigDTO config is {}, lastTime:{}", articleAnalyseConfigDTO, lastTime);
|
|
|
List<ArticleAnalyseConfigDTO.StrategyConfig> strategies = articleAnalyseConfigDTO.getStrategies();
|
|
|
if (Objects.isNull(strategies) || strategies.isEmpty()) {
|
|
|
XxlJobLogger.log("strategies is null or empty");
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|
|
|
- List<SpiderContent> contentList = spiderMapperExt.getRoughScreenSpiderContentHasContent();
|
|
|
+ List<SpiderContent> contentList = spiderMapperExt.getRoughScreenSpiderContentHasContentLatest(lastTime);
|
|
|
if (contentList.isEmpty()) {
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|
|
|
@@ -529,7 +529,6 @@ public class ContentScreenJob {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
for (SpiderContent content : contentList) {
|
|
|
Long filterTime = DateUtils.getBeforeDayStart(2);
|
|
|
if (content.getCreateTime() < filterTime) {
|