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 f1a528c7
authored
Apr 24, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:取消订单修改发拍单状态
1 parent
6a53ff56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 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 @
f1a528c
...
@@ -166,6 +166,12 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -166,6 +166,12 @@ public class AuctionOrderService extends AbstractAuctionService {
returnDeposit
(
deposit
,
"订单取消,退还保证金,订单号:"
+
auctionOrder
.
getOrderCode
(),
auctionOrder
.
getAccount
());
returnDeposit
(
deposit
,
"订单取消,退还保证金,订单号:"
+
auctionOrder
.
getOrderCode
(),
auctionOrder
.
getAccount
());
auctionOrder
.
setCancelReason
(
order
.
getCancelReason
());
auctionOrder
.
setCancelReason
(
order
.
getCancelReason
());
auctionOrder
.
resetOrderState
(
AuctionOrder
.
OrderState
.
CANCELED
,
Vehicle
.
VehicleState
.
PRICED
);
auctionOrder
.
resetOrderState
(
AuctionOrder
.
OrderState
.
CANCELED
,
Vehicle
.
VehicleState
.
PRICED
);
AuctionVehicle
auctionAndVehicle
=
auctionVehicleDao
.
findTopByAuctionAndVehicle
(
auctionOrder
.
getAuction
(),
auctionOrder
.
getVehicle
());
Vehicle
vehicle
=
auctionAndVehicle
.
getVehicle
();
if
(
vehicle
!=
null
)
{
vehicle
.
setVehicleState
(
Vehicle
.
VehicleState
.
PRICED
);
}
vrAuditService
.
syncVrAuditStatus
(
auctionAndVehicle
);
gscInvoker
.
pushAuction
(
auctionOrder
);
gscInvoker
.
pushAuction
(
auctionOrder
);
return
auctionOrder
;
return
auctionOrder
;
}
}
...
@@ -226,6 +232,10 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -226,6 +232,10 @@ public class AuctionOrderService extends AbstractAuctionService {
Deposit
deposit
=
depositDao
.
findByAuctionVehicle_AuctionAndAuctionVehicle_VehicleAndDepositStateAndAccount
(
auctionOrder
.
getAuction
(),
vehicle
,
Deposit
.
DepositState
.
FREEZE
,
account
);
Deposit
deposit
=
depositDao
.
findByAuctionVehicle_AuctionAndAuctionVehicle_VehicleAndDepositStateAndAccount
(
auctionOrder
.
getAuction
(),
vehicle
,
Deposit
.
DepositState
.
FREEZE
,
account
);
returnDeposit
(
deposit
,
"拍卖成功,退还保证金,订单号:"
+
auctionOrder
.
getOrderCode
(),
account
);
returnDeposit
(
deposit
,
"拍卖成功,退还保证金,订单号:"
+
auctionOrder
.
getOrderCode
(),
account
);
AuctionVehicle
auctionAndVehicle
=
auctionVehicleDao
.
findTopByAuctionAndVehicle
(
auctionOrder
.
getAuction
(),
auctionOrder
.
getVehicle
());
AuctionVehicle
auctionAndVehicle
=
auctionVehicleDao
.
findTopByAuctionAndVehicle
(
auctionOrder
.
getAuction
(),
auctionOrder
.
getVehicle
());
Vehicle
v
=
auctionAndVehicle
.
getVehicle
();
if
(
v
!=
null
)
{
v
.
setVehicleState
(
Vehicle
.
VehicleState
.
COMPLETED
);
}
vrAuditService
.
syncVrAuditStatus
(
auctionAndVehicle
);
vrAuditService
.
syncVrAuditStatus
(
auctionAndVehicle
);
// 审批通过,创建订单快照
// 审批通过,创建订单快照
orderSnapshotService
.
createFromAuctionOrder
(
auctionOrder
);
orderSnapshotService
.
createFromAuctionOrder
(
auctionOrder
);
...
...
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