Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
2a9b88de
Commit
2a9b88de
authored
Nov 26, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-储值卡增加积分配置ID1039801-zxh-20211124' into qa
parents
aa7f0ceb
115cd833
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+8
-5
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
2a9b88de
...
@@ -1883,16 +1883,19 @@ public class OrderAdapter {
...
@@ -1883,16 +1883,19 @@ public class OrderAdapter {
OrderAccountVo
accountVo
=
new
OrderAccountVo
();
OrderAccountVo
accountVo
=
new
OrderAccountVo
();
Integer
type
=
orderSettlement
.
getSettlementType
();
Integer
type
=
orderSettlement
.
getSettlementType
();
accountVo
.
setType
(
type
);
accountVo
.
setType
(
type
);
if
(
type
==
OrderSettlementType
.
PRODUCT_COUPON
.
getIndex
()
||
type
==
OrderSettlementType
.
CASH_COUPON
.
getIndex
()
if
(
type
.
compareTo
(
OrderSettlementType
.
PRODUCT_COUPON
.
getIndex
())
==
0
||
type
==
OrderSettlementType
.
DISCOUNT_COUPON
.
getIndex
())
{
||
type
.
compareTo
(
OrderSettlementType
.
CASH_COUPON
.
getIndex
())
==
0
||
type
.
compareTo
(
OrderSettlementType
.
DISCOUNT_COUPON
.
getIndex
())
==
0
){
// fisherman ->修改成券名称
// fisherman ->修改成券名称
accountVo
.
setTypeName
(
StringUtils
.
isEmpty
(
orderSettlement
.
getNote
())
?
"优惠券"
:
orderSettlement
.
getNote
());
accountVo
.
setTypeName
(
StringUtils
.
isEmpty
(
orderSettlement
.
getNote
())
?
"优惠券"
:
orderSettlement
.
getNote
());
}
else
if
(
type
==
OrderSettlementType
.
FULL_REDUCTION
.
getIndex
()
)
{
}
else
if
(
type
.
compareTo
(
OrderSettlementType
.
FULL_REDUCTION
.
getIndex
())==
0
)
{
accountVo
.
setTypeName
(
"满减"
);
accountVo
.
setTypeName
(
"满减"
);
}
else
if
(
type
==
OrderSettlementType
.
POINTS
.
getIndex
()
)
{
}
else
if
(
type
.
compareTo
(
OrderSettlementType
.
POINTS
.
getIndex
())==
0
)
{
accountVo
.
setTypeName
(
"积分抵扣"
);
accountVo
.
setTypeName
(
"积分抵扣"
);
}
else
if
(
type
==
OrderSettlementType
.
FREIGHT_COUPON
.
getIndex
()
)
{
}
else
if
(
type
.
compareTo
(
OrderSettlementType
.
FREIGHT_COUPON
.
getIndex
())==
0
)
{
accountVo
.
setTypeName
(
"配送券"
);
accountVo
.
setTypeName
(
"配送券"
);
}
else
{
accountVo
.
setTypeName
(
"参与活动"
);
}
}
int
value
=
orderSettlement
.
getSettlementAmount
().
intValue
();
int
value
=
orderSettlement
.
getSettlementAmount
().
intValue
();
accountVo
.
setDiscountAmount
(
value
<
0
?
-
value
:
value
);
accountVo
.
setDiscountAmount
(
value
<
0
?
-
value
:
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment