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
702c981f
Commit
702c981f
authored
Mar 21, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询2
parent
13b96b4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+5
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
702c981f
...
...
@@ -20,6 +20,7 @@ import com.wwdz.ch.wx.entity.vo.distribution.AuctionRecordRowVo;
import
com.wwdz.ch.wx.service.distribution.DistributionOrderService
;
import
com.wwdz.ch.wx.service.distribution.SupplierItemService
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.StringUtils
;
import
org.redisson.api.RLock
;
import
org.redisson.api.RedissonClient
;
...
...
@@ -264,7 +265,9 @@ public class SupplierItemServiceImpl implements SupplierItemService {
distributorShareRecordRequestDto
.
setDistributorId
(
sellerId
);
distributorShareRecordRequestDto
.
setType
(
dto
.
getType
());
List
<
DistributorShareRecord
>
distributorShareRecordList
=
distributorShareRecordDao
.
findMaxPriceRecord
(
distributorShareRecordRequestDto
);
logger
.
info
(
"distributorShareRecordList >>>>> : {}"
,
distributorShareRecordList
);
Map
<
Long
,
DistributorShareRecord
>
map
=
distributorShareRecordList
.
stream
().
collect
(
Collectors
.
toMap
(
DistributorShareRecord:
:
getItemId
,
Function
.
identity
(),
(
k1
,
k2
)
->
k1
));
logger
.
info
(
">>>>>>> map >>>>> : {}"
,
JsonUtils
.
from
(
map
));
List
<
Long
>
itemIds
=
distributorShareRecordList
.
stream
().
map
(
DistributorShareRecord:
:
getItemId
).
collect
(
Collectors
.
toList
());
SupplierItemRequestDto
searchDto
=
new
SupplierItemRequestDto
();
searchDto
.
setIsOnSale
(
true
);
...
...
@@ -275,13 +278,14 @@ public class SupplierItemServiceImpl implements SupplierItemService {
searchDto
.
setPage
(
dto
.
getPage
());
searchDto
.
setLimit
(
dto
.
getLimit
());
List
<
SupplierItem
>
supplierItemList
=
supplierItemDao
.
findList
(
searchDto
);
logger
.
info
(
">>>>>>> supplierItemList >>>>> : {}"
,
JsonUtils
.
from
(
supplierItemList
));
PageInfo
<
SupplierItem
>
pageInfo
=
new
PageInfo
(
supplierItemList
);
supplierItemList
.
forEach
(
supplierItem
->
{
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
EntityMapper
.
copyAttribute
(
supplierItem
,
supplierItemVo
);
supplierItemVo
.
setSalePrice
(
PriceUtil
.
convertPriceFenToYuan
(
map
.
get
(
supplierItem
.
getId
()).
getPrice
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
logger
.
info
(
"商品id:{}, 对应shareid : {}"
,
supplierItem
.
getId
(),
map
.
get
(
supplierItem
.
getId
()).
getShareId
());
supplierItemVo
.
setShareId
(
map
.
get
(
supplierItem
.
getId
()).
getShareId
());
//竞拍商品需要展示当前价
if
(
supplierItem
.
getType
()
==
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
())
{
...
...
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