Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
brandkbs2
Commits
84f412f3
Commit
84f412f3
authored
Jun 04, 2024
by
陈健智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原发追溯操作记录补充
parent
9644f351
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/main/java/com/zhiwei/brandkbs2/controller/app/AppArticleController.java
+1
-0
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkDataServiceImpl.java
+3
-0
No files found.
src/main/java/com/zhiwei/brandkbs2/controller/app/AppArticleController.java
View file @
84f412f3
...
...
@@ -555,6 +555,7 @@ public class AppArticleController extends BaseController {
@ApiOperation
(
"原发溯源-首发信息"
)
@PostMapping
(
"/search-whole/origin/first-article"
)
@LogRecord
(
description
=
"原发溯源"
)
public
ResponseResult
getWholeSearchFirstArticle
(
@RequestBody
MarkSearchDTO
dto
)
{
return
ResponseResult
.
success
(
markDataService
.
getWholeSearchFirstArticle
(
dto
));
}
...
...
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkDataServiceImpl.java
View file @
84f412f3
...
...
@@ -3332,6 +3332,9 @@ public class MarkDataServiceImpl implements MarkDataService {
SearchResponse
searchResponse
=
esClientDao
.
searchResponse
(
indexes
,
null
,
query
,
provinceAggregationBuilder
,
null
,
sort
,
0
,
1000
,
null
);
// hits
SearchHits
hits
=
searchResponse
.
getHits
();
if
(
0
==
hits
.
getHits
().
length
){
return
null
;
}
JSONObject
firstJson
=
new
JSONObject
(
hits
.
getAt
(
0
).
getSourceAsMap
());
Map
<
String
,
Integer
>
platformCount
=
new
HashMap
<>();
Map
<
String
,
Integer
>
fieldCount
=
new
HashMap
<>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment