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
fdb37cd6
Commit
fdb37cd6
authored
May 26, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打个日志
parent
241c4a51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingCartService.java
+9
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingCartService.java
View file @
fdb37cd6
...
@@ -10,6 +10,8 @@ import cn.freemud.entities.vo.ShoppingCartGoodsResponseVo;
...
@@ -10,6 +10,8 @@ import cn.freemud.entities.vo.ShoppingCartGoodsResponseVo;
import
cn.freemud.entities.vo.ShoppingCartInfoRequestVo
;
import
cn.freemud.entities.vo.ShoppingCartInfoRequestVo
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.service.impl.calculate.promotion.*
;
import
cn.freemud.service.impl.calculate.promotion.*
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.application.sdk.api.ordercenter.util.LogUtil
;
import
com.freemud.sdk.api.assortment.shoppingcart.enums.BusinessTypeEnum
;
import
com.freemud.sdk.api.assortment.shoppingcart.enums.BusinessTypeEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -52,6 +54,8 @@ public class CalculationSharingCartService {
...
@@ -52,6 +54,8 @@ public class CalculationSharingCartService {
@Autowired
@Autowired
private
BuyOneGiveOneSendService
buyOneGiveOneSendService
;
private
BuyOneGiveOneSendService
buyOneGiveOneSendService
;
@Autowired
private
LogUtil
logUtil
;
/**
/**
* 响应购物车价格计算依赖促销
* 响应购物车价格计算依赖促销
*/
*/
...
@@ -82,6 +86,11 @@ public class CalculationSharingCartService {
...
@@ -82,6 +86,11 @@ public class CalculationSharingCartService {
if
(
BusinessTypeEnum
.
SAAS_MALL
.
getCode
().
equals
(
menuType
)
&&
null
!=
shoppingCartInfoRequestVo
&&
OrderChannelType
.
SAASMALL
.
getCode
().
equalsIgnoreCase
(
shoppingCartInfoRequestVo
.
getChannelType
()))
{
if
(
BusinessTypeEnum
.
SAAS_MALL
.
getCode
().
equals
(
menuType
)
&&
null
!=
shoppingCartInfoRequestVo
&&
OrderChannelType
.
SAASMALL
.
getCode
().
equalsIgnoreCase
(
shoppingCartInfoRequestVo
.
getChannelType
()))
{
deliverySharingService
.
mallDeliveryResponse
(
shoppingCartGoodsResponseVo
,
deliveryAmount
,
discountResult
);
deliverySharingService
.
mallDeliveryResponse
(
shoppingCartGoodsResponseVo
,
deliveryAmount
,
discountResult
);
}
}
logUtil
.
info
(
"fisherman 1 "
,
JSON
.
toJSONString
(
discountResult
));
logUtil
.
info
(
"fisherman 2 "
,
JSON
.
toJSONString
(
cartGoodsList
));
logUtil
.
info
(
"fisherman 3 "
,
JSON
.
toJSONString
(
shoppingCartGoodsResponseVo
));
logUtil
.
info
(
"fisherman 4 "
,
JSON
.
toJSONString
(
couponPromotionVO
));
logUtil
.
info
(
"fisherman 5 "
,
JSON
.
toJSONString
(
shoppingCartInfoRequestVo
));
/**
/**
* 可用券及券折扣
* 可用券及券折扣
*/
*/
...
...
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