Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
69bfeeb0
Commit
69bfeeb0
authored
Feb 23, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表展示开关2
parent
4a4d7753
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+16
-3
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
69bfeeb0
...
@@ -155,10 +155,23 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -155,10 +155,23 @@ public class SupplierItemServiceImpl implements SupplierItemService {
@Override
@Override
public
Result
findItemsOfCurrentDistributor
(
SupplierItemRequestDto
dto
)
{
public
Result
findItemsOfCurrentDistributor
(
SupplierItemRequestDto
dto
)
{
try
{
try
{
//为了小程序过审,关闭列表展示,0关闭,1打开
List
<
SupplierItemVo
>
supplierItemVos
=
new
ArrayList
<>();
//为了小程序过审,关闭列表展示,0关闭,1打开,展示一个默认
Switch
sswitch
=
switchDao
.
find
();
Switch
sswitch
=
switchDao
.
find
();
if
(
sswitch
.
getState
()
==
0
)
{
if
(
sswitch
.
getState
()
==
0
)
{
return
Result
.
success
();
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
3289012L
);
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
supplierItemVo
.
setSalePrice
(
PriceUtil
.
convertPriceFenToYuan
(
100L
));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
supplierItemVos
.
add
(
supplierItemVo
);
PageSearchResult
pageSearchResult
=
new
PageSearchResult
();
pageSearchResult
.
setTotal
(
1L
);
pageSearchResult
.
setPageSize
(
20
);
pageSearchResult
.
setPageIndex
(
1
);
pageSearchResult
.
setIsHasNextPage
(
false
);
pageSearchResult
.
setDataList
(
supplierItemVos
);
return
Result
.
success
(
pageSearchResult
);
}
}
//当前用户
//当前用户
long
userId
=
dto
.
getUserId
();
long
userId
=
dto
.
getUserId
();
...
@@ -189,7 +202,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -189,7 +202,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
searchDto
.
setLimit
(
dto
.
getLimit
());
searchDto
.
setLimit
(
dto
.
getLimit
());
List
<
SupplierItem
>
supplierItemList
=
supplierItemDao
.
findList
(
searchDto
);
List
<
SupplierItem
>
supplierItemList
=
supplierItemDao
.
findList
(
searchDto
);
PageInfo
<
SupplierItem
>
pageInfo
=
new
PageInfo
(
supplierItemList
);
PageInfo
<
SupplierItem
>
pageInfo
=
new
PageInfo
(
supplierItemList
);
List
<
SupplierItemVo
>
supplierItemVos
=
new
ArrayList
<>();
supplierItemList
.
forEach
(
supplierItem
->
{
supplierItemList
.
forEach
(
supplierItem
->
{
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
...
...
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