Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c9e83d68
authored
Mar 13, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:查询拍卖结果新增兜底方案,当无人竞拍的时候使用起拍价作为兜底方案
1 parent
e8c97f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
View file @
c9e83d6
...
@@ -416,15 +416,15 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -416,15 +416,15 @@ public class AuctionOrderService extends AbstractAuctionService {
// 暗拍取最新一条
// 暗拍取最新一条
bid
=
bidDao
.
findTopByAuctionVehicleOrderByCreateTimeDesc
(
auctionVehicle
);
bid
=
bidDao
.
findTopByAuctionVehicleOrderByCreateTimeDesc
(
auctionVehicle
);
}
}
AccountBidResultResp
resp
=
AccountBidResultResp
.
builder
()
boolean
hasBid
=
true
;
.
price
(
0
)
.
bidResult
(
0
)
.
build
();
if
(
bid
==
null
)
{
if
(
bid
==
null
)
{
return
BaseResp
.
success
(
resp
);
hasBid
=
false
;
bid
=
new
Bid
();
bid
.
setBidPrice
(
vehicle
.
getStartingBidPrice
());
bid
.
setAccount
(
account
);
}
}
int
bidResult
=
0
;
int
bidResult
=
0
;
if
(
bid
.
getBidPrice
()
>=
vehicle
.
getReservePrice
())
{
if
(
hasBid
&&
bid
.
getBidPrice
()
>=
vehicle
.
getReservePrice
())
{
// 找到了最高价,并且最高价大于等于车辆保留价格,开始生成订单
// 找到了最高价,并且最高价大于等于车辆保留价格,开始生成订单
if
(
bid
.
getAccount
()
!=
null
&&
bid
.
getAccount
().
getAccountId
()
==
account
.
getAccountId
())
{
if
(
bid
.
getAccount
()
!=
null
&&
bid
.
getAccount
().
getAccountId
()
==
account
.
getAccountId
())
{
bidResult
=
1
;
bidResult
=
1
;
...
@@ -433,8 +433,10 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -433,8 +433,10 @@ public class AuctionOrderService extends AbstractAuctionService {
}
}
}
}
double
price
=
bid
.
getBidPrice
()
+
calculateCommissionPrice
(
bid
.
getCreateTime
(),
bid
);
double
price
=
bid
.
getBidPrice
()
+
calculateCommissionPrice
(
bid
.
getCreateTime
(),
bid
);
resp
.
setPrice
(
price
);
AccountBidResultResp
resp
=
AccountBidResultResp
.
builder
()
resp
.
setBidResult
(
bidResult
);
.
price
(
price
)
.
bidResult
(
bidResult
)
.
build
();
return
BaseResp
.
success
(
resp
);
return
BaseResp
.
success
(
resp
);
}
}
}
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment