Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
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
wx
yanxuan-wx-store-sharer
Commits
998af54f
Commit
998af54f
authored
Mar 17, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表检索为空,返回参处理
parent
a4573ed8
Pipeline
#71667
passed with stages
in 1 minute 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ProductServiceImpl.java
.../wx/store/sharer/biz/service/impl/ProductServiceImpl.java
+4
-7
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/ProductServiceImpl.java
View file @
998af54f
...
@@ -27,10 +27,7 @@ import org.springframework.util.CollectionUtils;
...
@@ -27,10 +27,7 @@ import org.springframework.util.CollectionUtils;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.Executor
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -130,9 +127,9 @@ public class ProductServiceImpl implements IProductService {
...
@@ -130,9 +127,9 @@ public class ProductServiceImpl implements IProductService {
.
stream
()
.
stream
()
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
pageVO
.
setList
(
productList
);
boolean
isEmpty
=
CollectionUtils
.
isEmpty
(
productList
);
pageVO
.
set
HasMore
(!
CollectionUtils
.
isEmpty
(
productList
)
pageVO
.
set
List
(
isEmpty
?
new
ArrayList
<>(
0
)
:
productList
);
&&
productList
.
size
()
>=
pageQuery
.
getPageSize
());
pageVO
.
setHasMore
(!
isEmpty
&&
productList
.
size
()
>=
pageQuery
.
getPageSize
());
pageVO
.
setNextKey
(
productListVO
.
getNext_key
());
pageVO
.
setNextKey
(
productListVO
.
getNext_key
());
}
}
log
.
info
(
"商品列表查询返回:{}"
,
System
.
currentTimeMillis
());
log
.
info
(
"商品列表查询返回:{}"
,
System
.
currentTimeMillis
());
...
...
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