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
31bbed7c
Commit
31bbed7c
authored
Dec 27, 2023
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单宝购买储值卡支付虚拟门店,订单宝暂无appid
parent
c2fc4bc7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
+1
-1
order-application-service/src/main/java/cn/freemud/enums/AggregationTypeEnum.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
+6
-1
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+11
-0
No files found.
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
View file @
31bbed7c
...
@@ -128,7 +128,7 @@ public class ExposureOrderController {
...
@@ -128,7 +128,7 @@ public class ExposureOrderController {
@ApiAnnotation
(
logMessage
=
"查询支付虚拟门店配置"
)
@ApiAnnotation
(
logMessage
=
"查询支付虚拟门店配置"
)
@PostMapping
(
"/getVirtualStore"
)
@PostMapping
(
"/getVirtualStore"
)
public
BaseResponse
<
String
>
getVirtualStore
(
@Validated
@LogParams
@RequestBody
GetVirtualStoreRequest
req
)
{
public
BaseResponse
<
String
>
getVirtualStore
(
@Validated
@LogParams
@RequestBody
GetVirtualStoreRequest
req
)
{
return
ResponseUtil
.
success
(
exposureOrderService
.
getVirtualStore
(
req
.
getAppId
(),
req
.
getType
()));
return
ResponseUtil
.
success
(
exposureOrderService
.
getVirtualStore
(
req
.
get
PartnerId
(),
req
.
get
AppId
(),
req
.
getType
()));
}
}
/**
/**
...
...
order-application-service/src/main/java/cn/freemud/enums/AggregationTypeEnum.java
View file @
31bbed7c
...
@@ -33,7 +33,7 @@ public enum AggregationTypeEnum {
...
@@ -33,7 +33,7 @@ public enum AggregationTypeEnum {
* 虚拟卖券分账支付门店
* 虚拟卖券分账支付门店
*/
*/
TYPE_11
(
"11"
,
"虚拟卖券分账支付门店"
),
TYPE_11
(
"11"
,
"虚拟卖券分账支付门店"
),
TYPE_12
(
"12"
,
""
),
TYPE_12
(
"12"
,
"
储值卡支付门店
"
),
/**
/**
* 视频号卖券支付门店
* 视频号卖券支付门店
*/
*/
...
...
order-application-service/src/main/java/cn/freemud/service/ExposureOrderService.java
View file @
31bbed7c
...
@@ -95,7 +95,12 @@ public class ExposureOrderService {
...
@@ -95,7 +95,12 @@ public class ExposureOrderService {
* @param type 虚拟门店类型 {@link AggregationTypeEnum}
* @param type 虚拟门店类型 {@link AggregationTypeEnum}
* @return 虚拟门店号
* @return 虚拟门店号
*/
*/
public
String
getVirtualStore
(
String
appId
,
String
type
)
{
public
String
getVirtualStore
(
String
partnerId
,
String
appId
,
String
type
)
{
//订单宝购买储值卡支付虚拟门店,订单宝暂无appid
if
(
type
.
equals
(
"12"
)
&&
appId
.
equals
(
"12"
)){
AssortmentOpenPlatformIappWxappStore
virtualStore
=
payService
.
getVirtualStore
(
partnerId
,
type
);
return
virtualStore
==
null
?
""
:
virtualStore
.
getStoreId
();
}
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
payService
.
getIappWxappStoreInfo
(
appId
,
type
);
AssortmentOpenPlatformIappWxappStore
wxAppStore
=
payService
.
getIappWxappStoreInfo
(
appId
,
type
);
return
wxAppStore
==
null
?
""
:
wxAppStore
.
getStoreId
();
return
wxAppStore
==
null
?
""
:
wxAppStore
.
getStoreId
();
}
}
...
...
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
31bbed7c
...
@@ -1251,6 +1251,17 @@ public class PayServiceImpl {
...
@@ -1251,6 +1251,17 @@ public class PayServiceImpl {
return
wxAppStore
;
return
wxAppStore
;
}
}
public
AssortmentOpenPlatformIappWxappStore
getVirtualStore
(
String
partnerId
,
String
aggregationType
)
{
AssortmentOpenPlatformIappWxappStore
wxappStore
=
new
AssortmentOpenPlatformIappWxappStore
();
wxappStore
.
setPartnerId
(
partnerId
);
wxappStore
.
setAggregationType
(
aggregationType
);
List
<
AssortmentOpenPlatformIappWxappStore
>
virtualStoreList
=
assortmentOpenPlatformIappWxappStoreManager
.
queryList
(
wxappStore
);
if
(
CollectionUtils
.
isEmpty
(
virtualStoreList
)){
return
null
;
}
return
virtualStoreList
.
get
(
virtualStoreList
.
size
()-
1
);
}
public
UnifiedOrderRequestDto
convert2UnifiedOrderRequestDto
(
UnifiedOrderCom
com
)
{
public
UnifiedOrderRequestDto
convert2UnifiedOrderRequestDto
(
UnifiedOrderCom
com
)
{
...
...
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