Commit 03f1aa1b by 陈健智

聚合标题展示替换为原标题

parent 6813c3f7
...@@ -392,6 +392,7 @@ public class AppHotController extends BaseController { ...@@ -392,6 +392,7 @@ public class AppHotController extends BaseController {
CompletableFuture.allOf(resultList.stream().map(json -> CompletableFuture.supplyAsync(() -> { CompletableFuture.allOf(resultList.stream().map(json -> CompletableFuture.supplyAsync(() -> {
try { try {
BaseMap firstArticle = markDataService.getFirstArticle(startDate.getTime(), endDate.getTime(), json.getString("title"), projectId, Constant.PRIMARY_CONTEND_ID, include); BaseMap firstArticle = markDataService.getFirstArticle(startDate.getTime(), endDate.getTime(), json.getString("title"), projectId, Constant.PRIMARY_CONTEND_ID, include);
json.put("title", firstArticle.getTitleNullOptionalContent());
json.put("content", firstArticle.getContent()); json.put("content", firstArticle.getContent());
json.put("url", firstArticle.getUrl()); json.put("url", firstArticle.getUrl());
json.put("realSource", firstArticle.getRealSource()); json.put("realSource", firstArticle.getRealSource());
......
...@@ -3497,6 +3497,7 @@ public class MarkDataServiceImpl implements MarkDataService { ...@@ -3497,6 +3497,7 @@ public class MarkDataServiceImpl implements MarkDataService {
CompletableFuture.allOf(markTopTitleList.stream().map(json -> CompletableFuture.supplyAsync(() -> { CompletableFuture.allOf(markTopTitleList.stream().map(json -> CompletableFuture.supplyAsync(() -> {
try { try {
BaseMap firstArticle = getAnalyzeFirstArticle(dto, json.getString("title")); BaseMap firstArticle = getAnalyzeFirstArticle(dto, json.getString("title"));
json.put("title", firstArticle.getTitleNullOptionalContent());
json.put("content", firstArticle.getContent()); json.put("content", firstArticle.getContent());
json.put("url", firstArticle.getUrl()); json.put("url", firstArticle.getUrl());
json.put("realSource", firstArticle.getRealSource()); json.put("realSource", firstArticle.getRealSource());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment