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 6fce8308
authored
May 15, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:查询是否使用优惠券逻辑更新
1 parent
4c8bd2a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
aus-admin/src/main/java/com/glsx/usedcar/export/AuctionOrderBean.java
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
aus-admin/src/main/java/com/glsx/usedcar/export/AuctionOrderBean.java
View file @
6fce830
...
@@ -156,7 +156,7 @@ public class AuctionOrderBean {
...
@@ -156,7 +156,7 @@ public class AuctionOrderBean {
this
.
transferredTime
=
auctionOrder
.
getTransferredTime
();
this
.
transferredTime
=
auctionOrder
.
getTransferredTime
();
this
.
onAppeal
=
auctionOrder
.
isOnAppeal
();
this
.
onAppeal
=
auctionOrder
.
isOnAppeal
();
this
.
couponName
=
auctionOrder
.
getCouponName
()
==
null
?
""
:
auctionOrder
.
getCouponName
();
this
.
couponName
=
auctionOrder
.
getCouponName
()
==
null
?
""
:
auctionOrder
.
getCouponName
();
this
.
couponDeductionAmount
=
auctionOrder
.
getCoupon
Name
()
==
null
?
""
:
String
.
valueOf
(
auctionOrder
.
getCouponDeduction
().
doubleValue
());
this
.
couponDeductionAmount
=
auctionOrder
.
getCoupon
Deduction
()
==
null
?
""
:
String
.
valueOf
(
auctionOrder
.
getCouponDeduction
().
doubleValue
());
this
.
realName
=
auction
.
getUser
().
getRealName
();
this
.
realName
=
auction
.
getUser
().
getRealName
();
this
.
createTime
=
auctionOrder
.
getCreateTime
();
this
.
createTime
=
auctionOrder
.
getCreateTime
();
...
...
aus-core/src/main/java/com/glsx/usedcar/module/auction/service/AuctionOrderService.java
View file @
6fce830
...
@@ -142,9 +142,12 @@ public class AuctionOrderService extends AbstractAuctionService {
...
@@ -142,9 +142,12 @@ public class AuctionOrderService extends AbstractAuctionService {
if
(
isUseCoupon
!=
null
)
{
if
(
isUseCoupon
!=
null
)
{
// 筛选出使用了优惠券的订单
// 筛选出使用了优惠券的订单
if
(
isUseCoupon
==
1
)
{
if
(
isUseCoupon
==
1
)
{
pagination
.
addCondition
((
root
,
query
,
builder
)
->
builder
.
greaterThan
(
root
.
get
(
AuctionOrder_
.
couponDeduction
),
0
));
pagination
.
addCondition
((
root
,
query
,
builder
)
->
builder
.
or
(
builder
.
isNotNull
(
root
.
get
(
AuctionOrder_
.
couponDeduction
)),
builder
.
greaterThan
(
root
.
get
(
AuctionOrder_
.
couponDeduction
),
0
)
));
}
else
{
}
else
{
pagination
.
addCondition
((
root
,
query
,
builder
)
->
builder
.
equal
(
root
.
get
(
AuctionOrder_
.
couponDeduction
),
0
));
pagination
.
addCondition
((
root
,
query
,
builder
)
->
builder
.
isNull
(
root
.
get
(
AuctionOrder_
.
couponDeduction
)
));
}
}
pagination
.
removeFilter
(
"isUseCoupon"
);
pagination
.
removeFilter
(
"isUseCoupon"
);
}
}
...
...
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