Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-user
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-user
Commits
0ffe9b67
Commit
0ffe9b67
authored
Oct 23, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
3abb3cf5
41a55aa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
yd-user-api/src/main/java/com/yd/user/api/service/impl/ApiMdCountryServiceImpl.java
+4
-1
No files found.
yd-user-api/src/main/java/com/yd/user/api/service/impl/ApiMdCountryServiceImpl.java
View file @
0ffe9b67
...
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Service;
...
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -32,7 +33,9 @@ public class ApiMdCountryServiceImpl implements ApiMdCountryService {
...
@@ -32,7 +33,9 @@ public class ApiMdCountryServiceImpl implements ApiMdCountryService {
List
<
ApiMdCountryVO
>
groupList
=
list
.
stream
().
map
(
this
::
objToVo
).
collect
(
Collectors
.
toList
());
List
<
ApiMdCountryVO
>
groupList
=
list
.
stream
().
map
(
this
::
objToVo
).
collect
(
Collectors
.
toList
());
// 热门国家/地区
// 热门国家/地区
List
<
ApiMdCountryVO
>
hotList
=
groupList
.
stream
().
filter
(
item
->
item
.
getHotRank
()!=
9999
).
collect
(
Collectors
.
toList
());
List
<
ApiMdCountryVO
>
hotList
=
groupList
.
stream
().
filter
(
item
->
item
.
getHotRank
()
!=
9999
)
.
sorted
(
Comparator
.
comparing
(
ApiMdCountryVO:
:
getHotRank
))
.
collect
(
Collectors
.
toList
());
response
.
setHotCountries
(
hotList
);
response
.
setHotCountries
(
hotList
);
response
.
setGroupCountries
(
groupList
);
response
.
setGroupCountries
(
groupList
);
...
...
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