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
811d2e28
Commit
811d2e28
authored
Jun 28, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍卖品当前价
parent
1b49aabc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+9
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
811d2e28
...
...
@@ -562,6 +562,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
if
(!
CollectionUtils
.
isEmpty
(
specialPerformanceConfigList
))
{
SpecialPerformanceConfig
specialPerformanceConfig
=
specialPerformanceConfigList
.
get
(
0
);
auctionDetailVo
.
setSpecialPerformanceId
(
specialPerformanceConfig
.
getSpecialPerformanceId
());
auctionDetailVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
specialPerformanceConfig
.
getCurrentPrice
()));
}
//查询商品竞拍信息
...
...
@@ -582,13 +583,19 @@ public class SupplierItemServiceImpl implements SupplierItemService {
});
auctionDetailVo
.
setPageSearchResult
(
PageSearchResult
.
of
(
pageInfo
,
auctionRecordRowVos
));
AuctionRecord
lastedRecord
=
auctionRecordDao
.
findLastedRecord
(
itemId
);
//当前价
if
(
CollectionUtils
.
isEmpty
(
auctionRecordList
))
{
auctionDetailVo
.
setUserState
(
DistributionEnum
.
AuctionUserStateEnum
.
PROCESS
.
getCode
());
auctionDetailVo
.
setUserStateName
(
DistributionEnum
.
AuctionUserStateEnum
.
PROCESS
.
getDes
());
if
(
StringUtils
.
isEmpty
(
auctionDetailVo
.
getCurrentPrice
()))
{
auctionDetailVo
.
setCurrentPrice
(
"0"
);
}
}
else
{
if
(
StringUtils
.
isEmpty
(
auctionDetailVo
.
getCurrentPrice
()))
{
auctionDetailVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
lastedRecord
.
getPrice
()));
}
//如果最高价是自己出的,用户状态显示已领先
if
(
lastedRecord
.
getUserId
().
longValue
()
==
dto
.
getUserId
().
longValue
())
{
auctionDetailVo
.
setUserState
(
DistributionEnum
.
AuctionUserStateEnum
.
LEAD
.
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