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
7b44f219
Commit
7b44f219
authored
Jul 27, 2022
by
查志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暴露查询虚拟门店接口
parent
28327a74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
1 deletions
+54
-1
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
+9
-0
order-application-service/src/main/java/cn/freemud/entities/vo/GetVirtualStoreRequest.java
+33
-0
order-application-service/src/main/java/cn/freemud/enums/AggregationTypeEnum.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
+11
-0
No files found.
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
View file @
7b44f219
...
...
@@ -103,4 +103,13 @@ public class ExposureOrderController {
return
ResponseUtil
.
success
(
exposureOrderService
.
getMallPayConfig
(
req
));
}
/**
* 查询支付虚拟门店配置
*/
@ApiAnnotation
(
logMessage
=
"查询支付虚拟门店配置"
)
@PostMapping
(
"/getVirtualStore"
)
public
BaseResponse
<
String
>
getVirtualStore
(
@Validated
@LogParams
@RequestBody
GetVirtualStoreRequest
req
)
{
return
ResponseUtil
.
success
(
exposureOrderService
.
getVirtualStore
(
req
.
getAppId
(),
req
.
getType
()));
}
}
order-application-service/src/main/java/cn/freemud/entities/vo/GetVirtualStoreRequest.java
0 → 100644
View file @
7b44f219
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
GetVirtualStoreRequest
{
@NotBlank
(
message
=
"商户号不能为空"
)
private
String
partnerId
;
@NotBlank
(
message
=
"小程序id不能为空"
)
private
String
appId
;
/**
* @see cn.freemud.enums.AggregationTypeEnum
*/
@NotBlank
private
String
type
;
}
order-application-service/src/main/java/cn/freemud/enums/AggregationTypeEnum.java
View file @
7b44f219
...
...
@@ -14,7 +14,7 @@ public enum AggregationTypeEnum {
*/
TYPE_6
(
"6"
,
"会员卡支付门店"
),
/**
* 微商城支付门店
* 微商城支付门店
(FM商城)
*/
TYPE_7
(
"7"
,
"微商城支付门店"
),
/**
...
...
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
View file @
7b44f219
...
...
@@ -72,4 +72,15 @@ public class ExposureOrderService {
vo
.
setStoreId
(
wxAppStore
.
getStoreId
());
return
vo
;
}
/**
* 查询支付虚拟门店配置
* @param appId 小程序应用appId
* @param type 虚拟门店类型 {@link AggregationTypeEnum}
* @return 虚拟门店号
*/
public
String
getVirtualStore
(
String
appId
,
String
type
)
{
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
payService
.
getIappWxappStoreInfo
(
appId
,
type
);
return
wxAppStore
==
null
?
""
:
wxAppStore
.
getStoreId
();
}
}
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