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
5a792656
Commit
5a792656
authored
Sep 18, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抖音卖券下单
parent
53af3295
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
3 deletions
+25
-3
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
+2
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+1
-3
order-application-service/src/main/java/cn/freemud/service/impl/OrderAdapterServiceImpl.java
+9
-0
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+10
-0
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
+0
-0
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/request/OrderExtInfoDto.java
+3
-0
No files found.
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
View file @
5a792656
...
...
@@ -83,6 +83,8 @@ public class CreateOrderVo {
private
String
mobile
;
private
String
saleCouponPhone
;
/**
* 渠道 1 saas 2 支付宝 3. iwc i围餐 5 头条
*/
...
...
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
5a792656
...
...
@@ -169,14 +169,12 @@ public class CheckOrder {
}
public
AssortmentCustomerInfoVo
checkOrderByMemberNew
(
String
sessionId
,
String
cardCode
)
{
public
AssortmentCustomerInfoVo
checkOrderByMemberNew
(
String
sessionId
)
{
// 通过sessionId查询缓存中会员id
AssortmentCustomerInfoVo
userLoginInfoDto
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
userLoginInfoDto
==
null
||
StringUtils
.
isEmpty
(
userLoginInfoDto
.
getMemberId
()))
{
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
}
//校验会员svc卡信息
// checkCardCode(userLoginInfoDto.getPartnerId(), userLoginInfoDto.getMemberId(), cardCode);
return
userLoginInfoDto
;
}
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderAdapterServiceImpl.java
View file @
5a792656
...
...
@@ -26,6 +26,7 @@ import com.freemud.application.sdk.api.log.LogThreadLocal;
import
com.freemud.application.sdk.api.ordercenter.config.OrderCenterProperties
;
import
com.freemud.application.sdk.api.ordercenter.entities.v1.OrderBeanV1
;
import
com.freemud.application.sdk.api.ordercenter.entities.vo.OrderCallBackRequestVo
;
import
com.freemud.application.sdk.api.ordercenter.enums.BizTypeEnum
;
import
com.freemud.application.sdk.api.ordercenter.response.orderInfo.OrderInfoReqs
;
import
com.freemud.sdk.api.assortment.order.enums.OrderSourceType
;
import
com.freemud.sdk.api.assortment.order.util.LockUtils
;
...
...
@@ -128,8 +129,11 @@ public class OrderAdapterServiceImpl {
private
SaasOrderHandle
saasOrderHandle
;
@Autowired
private
OrderCallbackClient
orderCallbackClient
;
@Autowired
private
SellCouponOrderServiceImpl
sellCouponOrderServiceImpl
;
//获取下单实现对象
private
OrderFactoryService
getCreateOrderBean
(
AssortmentCustomerInfoVo
assortmentCustomerInfoVo
,
CreateOrderVo
createOrderVo
){
// 扩展字段中存储 sessionKey
createOrderVo
.
setSessionKey
(
assortmentCustomerInfoVo
.
getSessionKey
());
...
...
@@ -150,6 +154,11 @@ public class OrderAdapterServiceImpl {
if
(
UserLoginChannelEnum
.
APP
.
getCode
().
equals
(
assortmentCustomerInfoVo
.
getChannel
()))
{
return
appOrderService
;
}
//抖音卖券
if
(
Objects
.
equals
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
(),
createOrderVo
.
getBizType
()))
{
return
sellCouponOrderServiceImpl
;
}
return
orderService
;
}
...
...
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
5a792656
...
...
@@ -1112,4 +1112,14 @@ public class PayServiceImpl {
}
/**
* 获取门店支付信息
*
* aggregationType 6-会员、7-微商城、8-一键购买 9:积分商城
*/
public
AssortmentOpenPlatformIappWxappStore
getIappWxappStoreInfo
(
String
wxAppId
,
String
aggregationType
)
{
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
assortmentOpenPlatformIappWxappStoreManager
.
selectIappWxappStoreByWxAppIdAndAggregationType
(
wxAppId
,
aggregationType
);
return
wxAppStore
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
View file @
5a792656
This diff is collapsed.
Click to expand it.
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/request/OrderExtInfoDto.java
View file @
5a792656
...
...
@@ -205,4 +205,7 @@ public class OrderExtInfoDto {
private
String
province
;
private
Long
totalScore
;
//抖音支付卖券手机号
private
String
saleCouponPhone
;
}
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