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
611ece9d
Commit
611ece9d
authored
Mar 08, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出价记录3
parent
0a1bcab2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
...wdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
+6
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AuctionRecordServiceImpl.java
View file @
611ece9d
...
...
@@ -189,11 +189,16 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
if
(
CollectionUtils
.
isEmpty
(
auctionRecordList
))
{
//没有出价记录最新价格为0
auctionRecordVo
.
setCurrentPrice
(
"0"
);
if
(
auctionConfig
.
getStartPrice
()
==
0
)
{
auctionRecordVo
.
setNextPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()
+
auctionConfig
.
getAddExtent
()));
}
else
{
auctionRecordVo
.
setNextPrice
(
PriceUtil
.
convertPriceFenToYuan
(
auctionConfig
.
getStartPrice
()));
}
auctionRecordVo
.
setUserState
(
DistributionEnum
.
AuctionUserStateEnum
.
PROCESS
.
getCode
());
auctionRecordVo
.
setUserStateName
(
DistributionEnum
.
AuctionUserStateEnum
.
PROCESS
.
getDes
());
}
else
{
auctionRecordVo
.
setCurrentPrice
(
PriceUtil
.
convertPriceFenToYuan
(
lastedRecord
.
getPrice
()));
auctionRecordVo
.
setNextPrice
(
PriceUtil
.
convertPriceFenToYuan
(
lastedRecord
.
getPrice
()
+
auctionConfig
.
getAddExtent
()));
//如果最高价是自己出的,用户状态显示已领先
if
(
lastedRecord
.
getUserId
().
longValue
()
==
dto
.
getUserId
().
longValue
())
{
auctionRecordVo
.
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