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 04190250
authored
Mar 17, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:投标竞价的时候加上时间判断
1 parent
90177f99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/BidService.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/BidService.java
View file @
0419025
...
@@ -137,6 +137,11 @@ public class BidService {
...
@@ -137,6 +137,11 @@ public class BidService {
if
(
auctionVehicle
.
getAuctionState
()
!=
AuctionVehicle
.
AuctionState
.
AUCTIONING
)
{
if
(
auctionVehicle
.
getAuctionState
()
!=
AuctionVehicle
.
AuctionState
.
AUCTIONING
)
{
throw
new
FieldException
(
"aucvehId"
,
aucvehId
,
"该车辆已结束竞标"
);
throw
new
FieldException
(
"aucvehId"
,
aucvehId
,
"该车辆已结束竞标"
);
}
}
LocalDateTime
auctionEndTime
=
auctionVehicle
.
getAuctionEndTime
();
// 判断是否已经结束
if
(
auctionEndTime
.
isBefore
(
LocalDateTime
.
now
()))
{
throw
new
FieldException
(
"aucvehId"
,
aucvehId
,
"该车辆已结束竞标"
);
}
Account
account
=
accountDao
.
findById
(
accountId
).
orElseThrow
(()
->
new
ObjectNotFoundException
(
accountId
,
Account
.
class
.
getSimpleName
()));
Account
account
=
accountDao
.
findById
(
accountId
).
orElseThrow
(()
->
new
ObjectNotFoundException
(
accountId
,
Account
.
class
.
getSimpleName
()));
if
(!
account
.
isEnabled
())
{
if
(!
account
.
isEnabled
())
{
throw
new
FieldException
(
"accountId"
,
accountId
,
"你已被禁止竞价"
);
throw
new
FieldException
(
"accountId"
,
accountId
,
"你已被禁止竞价"
);
...
...
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