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
569a101b
Commit
569a101b
authored
Jun 08, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature/1.9.26_积分抵扣规则,新增是否与促销和优惠券同享' into develop
parents
910714b1
3b445ecb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartCustomerScoreVo.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CustomerScoreService.java
+2
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartCustomerScoreVo.java
View file @
569a101b
...
@@ -25,5 +25,5 @@ public class ShoppingCartCustomerScoreVo {
...
@@ -25,5 +25,5 @@ public class ShoppingCartCustomerScoreVo {
/**
/**
* 是否可优惠同享{0所有订单均可抵扣,1仅限原价订单才可抵扣(享受了促销活动、或使用了优惠券,不能进行积分抵扣)
* 是否可优惠同享{0所有订单均可抵扣,1仅限原价订单才可抵扣(享受了促销活动、或使用了优惠券,不能进行积分抵扣)
*/
*/
private
String
overlayOffers
;
private
Integer
overlayOffers
;
}
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CustomerScoreService.java
View file @
569a101b
...
@@ -65,6 +65,7 @@ public class CustomerScoreService implements IPromotionService {
...
@@ -65,6 +65,7 @@ public class CustomerScoreService implements IPromotionService {
customerScoreVo
.
setCurrentScore
(
getValue
(
userScoreUseDetail
.
getResult
().
getCurrentScore
()));
customerScoreVo
.
setCurrentScore
(
getValue
(
userScoreUseDetail
.
getResult
().
getCurrentScore
()));
customerScoreVo
.
setReduceAmount
(
getValue
(
userScoreUseDetail
.
getResult
().
getReduceAmount
()));
customerScoreVo
.
setReduceAmount
(
getValue
(
userScoreUseDetail
.
getResult
().
getReduceAmount
()));
customerScoreVo
.
setReducePriceLimit
(
getValue
(
userScoreUseDetail
.
getResult
().
getReducePriceLimit
()));
customerScoreVo
.
setReducePriceLimit
(
getValue
(
userScoreUseDetail
.
getResult
().
getReducePriceLimit
()));
customerScoreVo
.
setOverlayOffers
(
userScoreUseDetail
.
getResult
().
getOverlayOffers
());
// 是否可优惠同享{0所有订单均可抵扣,1仅限原价订单才可抵扣(享受了促销活动、或使用了优惠券,不能进行积分抵扣
// 是否可优惠同享{0所有订单均可抵扣,1仅限原价订单才可抵扣(享受了促销活动、或使用了优惠券,不能进行积分抵扣
if
(
userScoreUseDetail
.
getResult
().
getOverlayOffers
()
==
0
)
{
if
(
userScoreUseDetail
.
getResult
().
getOverlayOffers
()
==
0
)
{
customerScoreVo
.
setScoreReduceState
(
userScoreUseDetail
.
getResult
().
getScoreState
());
customerScoreVo
.
setScoreReduceState
(
userScoreUseDetail
.
getResult
().
getScoreState
());
...
@@ -72,6 +73,7 @@ public class CustomerScoreService implements IPromotionService {
...
@@ -72,6 +73,7 @@ public class CustomerScoreService implements IPromotionService {
if
(
StringUtils
.
isNotBlank
(
shoppingCartInfoRequestVo
.
getCouponCode
())
||
calculationDiscountResult
.
getTotalDiscountAmount
().
intValue
()
>
0
)
{
if
(
StringUtils
.
isNotBlank
(
shoppingCartInfoRequestVo
.
getCouponCode
())
||
calculationDiscountResult
.
getTotalDiscountAmount
().
intValue
()
>
0
)
{
//积分抵扣开关禁用
//积分抵扣开关禁用
customerScoreVo
.
setScoreReduceState
(
3
);
customerScoreVo
.
setScoreReduceState
(
3
);
userScoreUseDetail
.
getResult
().
setScoreState
(
3
);
discountAmount
=
0
;
discountAmount
=
0
;
}
}
}
}
...
...
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