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 272e2a0c
authored
Mar 23, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:车辆固定佣金设置跑流程bug
1 parent
a456a448
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AppraiseService.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AppraiseService.java
View file @
272e2a0
...
@@ -55,7 +55,7 @@ public class AppraiseService extends AbstractAuctionService {
...
@@ -55,7 +55,7 @@ public class AppraiseService extends AbstractAuctionService {
throw
new
FieldException
(
"startingBidPrice"
,
appeal
.
getStartingBidPrice
(),
"该车辆已有未审核的评估申请,请勿重复提交。"
);
throw
new
FieldException
(
"startingBidPrice"
,
appeal
.
getStartingBidPrice
(),
"该车辆已有未审核的评估申请,请勿重复提交。"
);
}
}
int
fixedCommissionSwitch
=
appeal
.
getFixedCommissionSwitch
()
==
null
?
0
:
appeal
.
getFixedCommissionSwitch
();
int
fixedCommissionSwitch
=
appeal
.
getFixedCommissionSwitch
()
==
null
?
0
:
appeal
.
getFixedCommissionSwitch
();
double
fixedCommission
=
fixedCommissionSwitch
==
1
?
appeal
.
getFixedCommission
()
:
0
;
Double
fixedCommission
=
fixedCommissionSwitch
==
1
?
appeal
.
getFixedCommission
()
:
null
;
appeal
.
setFixedCommission
(
fixedCommission
);
appeal
.
setFixedCommission
(
fixedCommission
);
appeal
.
setFixedCommissionSwitch
(
fixedCommissionSwitch
);
appeal
.
setFixedCommissionSwitch
(
fixedCommissionSwitch
);
Vehicle
vehicle
=
vehicleDao
.
findById
(
appeal
.
getVehicle
().
getVehicleId
()).
orElseThrow
();
Vehicle
vehicle
=
vehicleDao
.
findById
(
appeal
.
getVehicle
().
getVehicleId
()).
orElseThrow
();
...
@@ -74,7 +74,7 @@ public class AppraiseService extends AbstractAuctionService {
...
@@ -74,7 +74,7 @@ public class AppraiseService extends AbstractAuctionService {
NoticeField
.
STARTING_BID_PRICE
,
save
.
getStartingBidPrice
(),
NoticeField
.
STARTING_BID_PRICE
,
save
.
getStartingBidPrice
(),
NoticeField
.
REFERENCE_PRICE
,
save
.
getReferencePrice
(),
NoticeField
.
REFERENCE_PRICE
,
save
.
getReferencePrice
(),
NoticeField
.
FIXED_COMMISSION_SWITCH
,
save
.
getFixedCommissionSwitch
()
==
1
?
"是"
:
"否"
,
NoticeField
.
FIXED_COMMISSION_SWITCH
,
save
.
getFixedCommissionSwitch
()
==
1
?
"是"
:
"否"
,
NoticeField
.
FIXED_COMMISSION
,
fixedCommission
NoticeField
.
FIXED_COMMISSION
,
fixedCommission
==
null
?
"无"
:
fixedCommission
));
));
return
save
;
return
save
;
}
}
...
...
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
View file @
272e2a0
...
@@ -391,6 +391,7 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -391,6 +391,7 @@ public class AuctionOrderService extends AbstractAuctionService {
double
startingBidPrice
=
vehicle
.
getStartingBidPrice
();
double
startingBidPrice
=
vehicle
.
getStartingBidPrice
();
bid
=
new
Bid
();
bid
=
new
Bid
();
bid
.
setBidPrice
(
startingBidPrice
);
bid
.
setBidPrice
(
startingBidPrice
);
bid
.
setAuctionVehicle
(
auctionVehicle
);
}
}
bid
.
setAccount
(
account
);
bid
.
setAccount
(
account
);
return
calculateCommissionPrice
(
LocalDateTime
.
now
(),
bid
);
return
calculateCommissionPrice
(
LocalDateTime
.
now
(),
bid
);
...
@@ -415,6 +416,7 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -415,6 +416,7 @@ public class AuctionOrderService extends AbstractAuctionService {
bid
.
setBidPrice
(
vehicle
.
getStartingBidPrice
());
bid
.
setBidPrice
(
vehicle
.
getStartingBidPrice
());
bid
.
setAccount
(
account
);
bid
.
setAccount
(
account
);
bid
.
setCreateTime
(
LocalDateTime
.
now
());
bid
.
setCreateTime
(
LocalDateTime
.
now
());
bid
.
setAuctionVehicle
(
auctionVehicle
);
}
}
int
bidResult
=
0
;
int
bidResult
=
0
;
if
(
hasBid
&&
bid
.
getBidPrice
()
>=
vehicle
.
getReservePrice
())
{
if
(
hasBid
&&
bid
.
getBidPrice
()
>=
vehicle
.
getReservePrice
())
{
...
...
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