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
4134840d
Commit
4134840d
authored
Jun 17, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
be20d9db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
shopping-cart-application-service/src/main/java/cn/freemud/enums/ActivityTypeEnum.java
+2
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CustomerScoreService.java
+4
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/enums/ActivityTypeEnum.java
View file @
4134840d
...
...
@@ -52,7 +52,8 @@ public enum ActivityTypeEnum {
TYPE_200
(
200
,
"X元Y件"
),
TYPE_PACKAGE
(
900
,
"包装费"
),
TYPE_DELIVERY
(
901
,
"配送费"
),
TYPE_320
(
320
,
"会员价商品优惠"
);
TYPE_320
(
320
,
"会员价商品优惠"
),
TYPE_221
(
221
,
"集点"
);
private
Integer
code
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CustomerScoreService.java
View file @
4134840d
...
...
@@ -85,15 +85,18 @@ public class CustomerScoreService implements IPromotionService {
}
}
//集点
long
discountCount
=
calculationDiscountResult
.
getDiscounts
().
stream
().
filter
(
discount
->
!
ActivityTypeEnum
.
TYPE_221
.
getCode
().
equals
(
discount
.
getType
())).
count
();
/*
int discountCount = calculationDiscountResult.getDiscounts().size();
int type211 = 0;
for (ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Discount discount : calculationDiscountResult.getDiscounts()) {
if
(
discount
.
getType
().
equals
(
221
))
{
if (
ActivityTypeEnum.TYPE_221.getCode().equals(discount.getType()
)) {
type211 += 1;
break;
}
}
discountCount = discountCount - type211;
*/
//积分抵扣开关禁用 有换购活动 且选中了换购商品
// - 有换购且选中了换购商品
// - 有换购且没有选中换购商品 且除集点以外还有其他促销
...
...
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