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
a95d2078
Commit
a95d2078
authored
Feb 26, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车获取配置修改移动到购物车下面
parent
fb420e62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
48 deletions
+13
-48
shopping-cart-application-service/src/main/java/cn/freemud/controller/OpenStoreConfigController.java
+0
-48
shopping-cart-application-service/src/main/java/cn/freemud/controller/ShoppingCartController.java
+13
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/controller/OpenStoreConfigController.java
deleted
100644 → 0
View file @
fb420e62
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @Title: ShoppingCart
* @Package cn.freemud.controller
* @Description:
* @author: ping.wu
* @date: 2018/5/18 18:07
* @version V1.0
* @Copyright: 2018 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
package
cn
.
freemud
.
controller
;
import
cn.freemud.aop.LogIgnore
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.constant.ResponseCodeConstant
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.service.OpenStoreIappWxappConfigService
;
import
com.freemud.application.sdk.api.log.LogParams
;
import
io.swagger.annotations.Api
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
value
=
"/config"
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@Api
(
value
=
"订单配置 controller"
,
tags
=
{
"订单配置接口"
})
@Slf4j
public
class
OpenStoreConfigController
{
@Autowired
private
OpenStoreIappWxappConfigService
openStoreIappWxappConfigService
;
/**
* 结算页获取是否展示订单那备注配置
*/
@PostMapping
(
value
=
"/getOpenStoreIappWxappConfig"
)
@LogIgnore
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
logMessage
=
"/getOpenStoreIappWxappConfig"
)
public
BaseResponse
getOpenStoreIappWxappConfig
(
@LogParams
@RequestBody
OpenStoreIappWxappConfigRequestVo
request
)
{
return
openStoreIappWxappConfigService
.
getOpenStoreIappWxappConfig
(
request
);
}
}
shopping-cart-application-service/src/main/java/cn/freemud/controller/ShoppingCartController.java
View file @
a95d2078
...
@@ -19,6 +19,7 @@ import cn.freemud.entities.dto.GetMemberInfoRequestDto;
...
@@ -19,6 +19,7 @@ import cn.freemud.entities.dto.GetMemberInfoRequestDto;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.enums.OrderChannelType
;
import
cn.freemud.enums.ResponseResult
;
import
cn.freemud.enums.ResponseResult
;
import
cn.freemud.service.OpenStoreIappWxappConfigService
;
import
cn.freemud.service.ShoppingCartNewService
;
import
cn.freemud.service.ShoppingCartNewService
;
import
cn.freemud.service.impl.ShoppingCartMallServiceImpl
;
import
cn.freemud.service.impl.ShoppingCartMallServiceImpl
;
import
cn.freemud.service.impl.ShoppingCartMealServiceImpl
;
import
cn.freemud.service.impl.ShoppingCartMealServiceImpl
;
...
@@ -51,6 +52,9 @@ public class ShoppingCartController {
...
@@ -51,6 +52,9 @@ public class ShoppingCartController {
@Autowired
@Autowired
private
AssortmentCustomerInfoManager
customerInfoManager
;
private
AssortmentCustomerInfoManager
customerInfoManager
;
@Autowired
private
OpenStoreIappWxappConfigService
openStoreIappWxappConfigService
;
/**
/**
* 从微信卡券向购物车中添加商品
* 从微信卡券向购物车中添加商品
*/
*/
...
@@ -187,4 +191,13 @@ public class ShoppingCartController {
...
@@ -187,4 +191,13 @@ public class ShoppingCartController {
return
SDKCommonBaseContextWare
.
getBean
(
ShoppingCartNewServiceImpl
.
class
).
getMemberInfo
(
request
);
return
SDKCommonBaseContextWare
.
getBean
(
ShoppingCartNewServiceImpl
.
class
).
getMemberInfo
(
request
);
}
}
/**
* 结算页获取是否展示订单那备注配置
*/
@PostMapping
(
value
=
"/getOpenStoreIappWxappConfig"
)
@LogIgnore
(
excludeStatusCodes
=
{
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
},
logMessage
=
"/getOpenStoreIappWxappConfig"
)
public
BaseResponse
getOpenStoreIappWxappConfig
(
@LogParams
@RequestBody
OpenStoreIappWxappConfigRequestVo
request
)
{
return
openStoreIappWxappConfigService
.
getOpenStoreIappWxappConfig
(
request
);
}
}
}
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