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
3c611c5d
Commit
3c611c5d
authored
Dec 08, 2020
by
刘鹏飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature/coco-payGift-刘鹏飞' into qa
parents
e231f8d7
0e241039
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/FullSharingService.java
+0
-8
shopping-cart-application-service/src/main/java/cn/freemud/service/shoppingCart/impl/CocoShoppingCartRelationServiceImpl.java
+3
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/FullSharingService.java
View file @
3c611c5d
...
...
@@ -58,14 +58,11 @@ public class FullSharingService {
activityTypeEnums
.
add
(
ActivityTypeEnum
.
TYPE_3
);
activityTypeEnums
.
add
(
ActivityTypeEnum
.
TYPE_31
);
String
aa
=
LogThreadLocal
.
getTrackingNo
();
if
(
discountResult
==
null
||
CollectionUtils
.
isEmpty
(
discountResult
.
getGoods
()))
{
/**
* 调用促销统一活动查询,过滤出参与的满减(目前只有每满减和阶梯满减)
*/
ActivityQueryResponseDto
activityQueryResponseDto
=
activityService
.
queryActivityByType
(
activityQueryDto
,
activityTypeEnums
,
null
);
ApiLog
.
info
(
"满减提示,getTrackingNo:{},ActivityQueryResponseDto:{}"
,
aa
,
JSONObject
.
toJSONString
(
activityQueryResponseDto
));
if
(
null
==
activityQueryResponseDto
||
CollectionUtils
.
isEmpty
(
activityQueryResponseDto
.
getResult
()))
{
return
;
}
...
...
@@ -250,8 +247,6 @@ public class FullSharingService {
notInShopping
.
setDeduct
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getDiscountAmount
()
*
1.00
/
100
).
toString
());
notInShopping
.
setMaxDeduct
(
WebUtil
.
formatAmount
(
activityResponseDto
.
getMaxMoney
()
*
1.00
/
100
).
toString
());
activityList
.
add
(
notInShopping
);
String
aa
=
LogThreadLocal
.
getTrackingNo
();
ApiLog
.
info
(
"满减提示,getTrackingNo:{},TYPE_11:{}"
,
aa
,
JSONObject
.
toJSONString
(
activityList
));
}
if
(
Objects
.
equals
(
ActivityTypeEnum
.
TYPE_12
.
getCode
(),
activityResponseDto
.
getActivityType
()))
{
int
len
=
benefitBeanDtos
.
size
();
...
...
@@ -274,9 +269,6 @@ public class FullSharingService {
notInShopping
.
setDeduct
(
WebUtil
.
formatAmount
(
benefitBeanDto
.
getDiscountAmount
()
*
1.00
/
100
).
toString
());
activityList
.
add
(
notInShopping
);
}
String
aa
=
LogThreadLocal
.
getTrackingNo
();
ApiLog
.
info
(
"满减提示,getTrackingNo:{},TYPE_12:{}"
,
aa
,
JSONObject
.
toJSONString
(
activityList
));
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/shoppingCart/impl/CocoShoppingCartRelationServiceImpl.java
View file @
3c611c5d
...
...
@@ -129,9 +129,11 @@ public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelation
newProducts
.
add
(
product
);
}
newProducts
.
addAll
(
halfProduct
);
}
// 半价商品加到购物车
newProducts
.
addAll
(
halfProduct
);
shoppingCartGoodsResponseVo
.
setProducts
(
newProducts
);
}
}
...
...
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