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
8920c151
Commit
8920c151
authored
Nov 12, 2020
by
徐康
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20201112_优惠为0的券也要核销_xukang'
parents
c0493117
d61d9f5e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
order-application-service/src/main/java/cn/freemud/service/mccafe/impl/CouponClientServiceImpl.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CalculationServiceImpl.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/mccafe/impl/CouponClientServiceImpl.java
View file @
8920c151
...
...
@@ -146,7 +146,7 @@ public class CouponClientServiceImpl implements CouponClientService {
account
->
(
OldOrderAccountType
.
PRODUCT_COUPON
.
equals
(
OldOrderAccountType
.
getByCode
(
account
.
getType
()))
||
OldOrderAccountType
.
COUPON
.
equals
(
OldOrderAccountType
.
getByCode
(
account
.
getType
()))
||
OldOrderAccountType
.
DISCOUNT_COUPON
.
equals
(
OldOrderAccountType
.
getByCode
(
account
.
getType
()))
)
&&
account
.
getPrice
()
!=
0
l
).
collect
(
Collectors
.
toList
());
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
accountList
))
{
return
null
;
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/calculation/CalculationServiceImpl.java
View file @
8920c151
...
...
@@ -205,7 +205,7 @@ public class CalculationServiceImpl {
for
(
ActivityCalculationDiscountResponseDto
.
CalculationDiscountResult
.
Discount
discount
:
discounts
)
{
int
discountAmount
=
(
discount
.
getDiscount
()
==
null
)
?
0
:
discount
.
getDiscount
();
Integer
discountType
=
discount
.
getType
();
if
(
discountType
!=
null
&&
discountAmount
>
0
)
{
if
(
discountType
!=
null
&&
discountAmount
>
=
0
)
{
ActivityDiscountsDto
activityDiscountsDto
=
new
ActivityDiscountsDto
();
activityDiscountsDto
.
setActivityCode
(
discount
.
getActivityCode
());
activityDiscountsDto
.
setActivityName
(
discount
.
getActivityName
());
...
...
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