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
a5f90513
Commit
a5f90513
authored
May 24, 2022
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新商城支付门店配置
parent
455bd194
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
0 deletions
+61
-0
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
+9
-0
order-application-service/src/main/java/cn/freemud/entities/vo/GetMallPayConfigVo.java
+27
-0
order-application-service/src/main/java/cn/freemud/entities/vo/order/PayConfigVo.java
+5
-0
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
+20
-0
No files found.
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
View file @
a5f90513
...
...
@@ -94,4 +94,13 @@ public class ExposureOrderController {
return
ResponseUtil
.
success
();
}
/**
* 新商城支付门店配置
*/
@ApiAnnotation
(
logMessage
=
"新商城支付门店配置"
)
@PostMapping
(
"/getMallPayConfig"
)
public
BaseResponse
<
PayConfigVo
>
getMallPayConfig
(
@Validated
@LogParams
@RequestBody
GetMallPayConfigVo
req
)
{
return
ResponseUtil
.
success
(
exposureOrderService
.
getMallPayConfig
(
req
));
}
}
order-application-service/src/main/java/cn/freemud/entities/vo/GetMallPayConfigVo.java
0 → 100644
View file @
a5f90513
package
cn
.
freemud
.
entities
.
vo
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @version V1.0
* @Title: GetMallPayConfigVo
* @Package cn.freemud.entities.vo
* @Description:
* @author: ping.wu
* @date: 22-5-24 下午5:51
* @Copyright: 2022 www.freemud.cn Inc. All rights reserved.
*/
@Data
public
class
GetMallPayConfigVo
{
@NotBlank
(
message
=
"商户号不能为空"
)
private
String
partnerId
;
@NotBlank
(
message
=
"小程序id不能为空"
)
private
String
appId
;
}
order-application-service/src/main/java/cn/freemud/entities/vo/order/PayConfigVo.java
View file @
a5f90513
...
...
@@ -24,4 +24,9 @@ public class PayConfigVo {
* 门店支付编号
*/
private
String
payCode
;
/**
* 支付门店
*/
private
String
storeId
;
}
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
View file @
a5f90513
package
cn
.
freemud
.
service
;
import
cn.freemud.entities.vo.GetMallPayConfigVo
;
import
cn.freemud.entities.vo.GetPayConfigVo
;
import
cn.freemud.entities.vo.GetPaySuccessDataRequest
;
import
cn.freemud.entities.vo.order.PayConfigVo
;
import
cn.freemud.entities.vo.order.PaySuccessDataVo
;
import
cn.freemud.enums.AggregationTypeEnum
;
import
cn.freemud.enums.OrderTackCodeFactory
;
import
cn.freemud.enums.TakeCodeOrderType
;
import
cn.freemud.manager.OrderTackCodeManager
;
import
cn.freemud.service.business.impl.OrderBusinessServiceImpl
;
import
cn.freemud.service.impl.PayServiceImpl
;
import
com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformIappWxappStore
;
import
com.freemud.application.sdk.api.ordercenter.adapter.OrderCenterSdkAdapter
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
...
...
@@ -52,4 +55,21 @@ public class ExposureOrderService {
vo
.
setTimeout
(
timeout
);
return
vo
;
}
/**
* 新商城支付门店配置
*/
public
PayConfigVo
getMallPayConfig
(
GetMallPayConfigVo
req
)
{
PayConfigVo
vo
=
new
PayConfigVo
();
vo
.
setPrincipalName
(
payService
.
getPaymentPrincipalName
(
req
.
getPartnerId
(),
req
.
getAppId
()));
vo
.
setPayTimeOut
(
payService
.
getPartnerPayOvertime
(
req
.
getPartnerId
()));
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
payService
.
getIappWxappStoreInfo
(
req
.
getAppId
(),
AggregationTypeEnum
.
TYPE_7
.
getCode
());
if
(
wxAppStore
==
null
)
{
wxAppStore
=
new
AssortmentOpenPlatformIappWxappStore
();
}
vo
.
setPayCode
(
wxAppStore
.
getClientCode
());
vo
.
setStoreId
(
wxAppStore
.
getStoreId
());
return
vo
;
}
}
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