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
1b71e74a
Commit
1b71e74a
authored
Mar 17, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表检索为空,返回参处理
parent
60e2ba88
Pipeline
#71670
passed with stages
in 1 minute 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
PageVO.java
...netease/yanxuan/wx/store/sharer/biz/meta/page/PageVO.java
+6
-0
ProductServiceImpl.java
.../wx/store/sharer/biz/service/impl/ProductServiceImpl.java
+1
-1
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/meta/page/PageVO.java
View file @
1b71e74a
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
biz
.
meta
.
page
;
import
lombok.Data
;
import
org.springframework.util.CollectionUtils
;
import
java.io.Serializable
;
import
java.util.Collections
;
import
java.util.List
;
/**
...
...
@@ -26,4 +28,8 @@ public class PageVO<T> implements Serializable {
* 列表数据
*/
private
List
<
T
>
list
;
public
void
setList
(
List
<
T
>
list
)
{
this
.
list
=
CollectionUtils
.
isEmpty
(
list
)
?
Collections
.
emptyList
()
:
list
;
}
}
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/ProductServiceImpl.java
View file @
1b71e74a
...
...
@@ -129,8 +129,8 @@ public class ProductServiceImpl implements IProductService {
.
filter
(
Objects:
:
nonNull
)
.
collect
(
Collectors
.
toList
());
}
pageVO
.
setList
(
productList
);
boolean
isEmpty
=
CollectionUtils
.
isEmpty
(
productList
);
pageVO
.
setList
(
isEmpty
?
new
ArrayList
<>(
0
)
:
productList
);
pageVO
.
setHasMore
(!
isEmpty
&&
productList
.
size
()
>=
pageQuery
.
getPageSize
());
pageVO
.
setNextKey
(
productListVO
.
getNext_key
());
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