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
a226cb8f
Commit
a226cb8f
authored
Feb 04, 2021
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
066e12e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/AbstractListCartGoodsService.java
+7
-6
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/AbstractListCartGoodsService.java
View file @
a226cb8f
...
...
@@ -314,7 +314,7 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
StringBuilder
messageBuilder
=
new
StringBuilder
();
ActivityBO
activityBO
=
setMessageBO
.
getActivityBO
();
List
<
ActivityList
>
activityList
=
null
;
if
(
discountResult
==
null
||
CollectionUtils
.
isEmpty
(
discountResult
.
getGoods
(
)))
{
if
(
activityBO
!=
null
&&
(
discountResult
==
null
||
CollectionUtils
.
isEmpty
(
discountResult
.
getGoods
()
)))
{
List
<
BenefitBeanBO
>
benefitBeanBOList
=
activityBO
.
getBenefits
();
BenefitBeanBO
benefitBeanBO
=
benefitBeanBOList
.
get
(
0
);
...
...
@@ -332,7 +332,7 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
*/
if
(
CollectionUtils
.
isNotEmpty
(
activityPrompts
))
{
activityList
=
setMessageSatisfyCart
(
messageBuilder
,
activityPrompts
,
activityBO
);
}
else
{
}
else
if
(
discountResult
!=
null
)
{
activityList
=
setMessageNoSatisfyCart
(
messageBuilder
,
discountResult
.
getDiscounts
());
}
...
...
@@ -357,7 +357,7 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
ShoppingCartCustomerScoreVo
customerScore
=
shoppingCartGoodsBO
.
getCustomerScoreVo
();
// 积分抵扣
if
(
customerScore
!=
null
){
if
(
customerScore
!=
null
&&
customerScore
.
getScoreState
()
!=
null
){
String
msg
=
""
;
// 积分抵扣状态 1积分可用 2积分不足 3 积分抵扣开关禁用 4、订单金额不满足开启积分抵现要求
...
...
@@ -504,8 +504,9 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
}
// 积分抵扣
if
(
scoreReduceBO
!=
null
){
totalAmount
-=
scoreReduceBO
.
getDiscountAmount
();
totalDiscountAmount
-=
scoreReduceBO
.
getDiscountAmount
();
int
discountAmount
=
scoreReduceBO
.
getDiscountAmount
()
!=
null
?
scoreReduceBO
.
getDiscountAmount
()
:
0
;
totalAmount
-=
discountAmount
;
totalDiscountAmount
-=
discountAmount
;
ShoppingCartCustomerScoreVo
scoreVo
=
new
ShoppingCartCustomerScoreVo
();
scoreVo
.
setCurrentScore
(
scoreReduceBO
.
getCurrentScore
());
scoreVo
.
setScoreState
(
scoreReduceBO
.
getScoreState
());
...
...
@@ -558,7 +559,7 @@ public class AbstractListCartGoodsService implements ListCartGoodsService {
*
*/
public
BuyMemberCardBO
addNeedCardAmount
(
ListCartGoodsBO
baseRequestDTO
)
{
BuyMemberCardBO
buyMemberCardBO
=
n
ew
BuyMemberCardBO
()
;
BuyMemberCardBO
buyMemberCardBO
=
n
ull
;
ShoppingCartInfoRequestVo
.
BuyMemberCard
buyMemberCard
=
baseRequestDTO
.
getBuyMemberCard
();
if
(
baseRequestDTO
.
getBuyMemberCard
()
==
null
||
StringUtils
.
isEmpty
(
buyMemberCard
.
getPaidId
())
||
StringUtils
.
isEmpty
(
buyMemberCard
.
getRuleId
()))
{
return
buyMemberCardBO
;
...
...
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