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
96eda8c9
Commit
96eda8c9
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
4173b318
6008f9d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CustomerScoreService.java
+3
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/CustomerScoreService.java
View file @
96eda8c9
...
@@ -72,8 +72,8 @@ public class CustomerScoreService implements IPromotionService {
...
@@ -72,8 +72,8 @@ public class CustomerScoreService implements IPromotionService {
}
else
{
}
else
{
if
(
StringUtils
.
isNotBlank
(
shoppingCartInfoRequestVo
.
getCouponCode
())
||
(
calculationDiscountResult
!=
null
&&
calculationDiscountResult
.
getTotalDiscountAmount
().
intValue
()
>
0
))
{
if
(
StringUtils
.
isNotBlank
(
shoppingCartInfoRequestVo
.
getCouponCode
())
||
(
calculationDiscountResult
!=
null
&&
calculationDiscountResult
.
getTotalDiscountAmount
().
intValue
()
>
0
))
{
//积分抵扣开关禁用
//积分抵扣开关禁用
customerScoreVo
.
setScoreReduceState
(
3
);
customerScoreVo
.
setScoreReduceState
(
5
);
userScoreUseDetail
.
getResult
().
setScoreState
(
3
);
userScoreUseDetail
.
getResult
().
setScoreState
(
5
);
discountAmount
=
0
;
discountAmount
=
0
;
}
}
}
}
...
@@ -90,7 +90,7 @@ public class CustomerScoreService implements IPromotionService {
...
@@ -90,7 +90,7 @@ public class CustomerScoreService implements IPromotionService {
String
[]
split
=
userScoreUseDetail
.
getResult
().
getScoreReduceRate
().
split
(
":"
);
String
[]
split
=
userScoreUseDetail
.
getResult
().
getScoreReduceRate
().
split
(
":"
);
msg
=
String
.
format
(
"共%s积分,每%s积分可抵¥%s"
,
getValue
(
userScoreUseDetail
.
getResult
().
getCurrentScore
()),
split
[
0
],
split
[
1
]);
msg
=
String
.
format
(
"共%s积分,每%s积分可抵¥%s"
,
getValue
(
userScoreUseDetail
.
getResult
().
getCurrentScore
()),
split
[
0
],
split
[
1
]);
break
;
break
;
case
3
:
case
5
:
msg
=
"已享受优惠,无法再参与积分抵扣"
;
msg
=
"已享受优惠,无法再参与积分抵扣"
;
break
;
break
;
case
4
:
case
4
:
...
...
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