Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
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
fitness-server
fit-finance
Commits
3cb4aef6
Commit
3cb4aef6
authored
May 30, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:rebind xcx appid
parent
2b5ec953
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+6
-0
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
3cb4aef6
...
...
@@ -36,6 +36,7 @@ import com.jiejing.message.enums.MsgChannelEnum;
import
com.jiejing.message.event.SendCommonMsgEvent
;
import
com.jiejing.paycenter.api.merchant.request.ApplyMerchantRequest
;
import
com.jiejing.paycenter.common.enums.merchant.SubChannelOpenTypeEnums
;
import
com.jiejing.paycenter.common.model.request.SubChannelConfigInfo
;
import
com.jiejing.paycenter.common.model.vo.AuthSubChannelVO
;
import
com.jiejing.paycenter.common.model.vo.ConfigSubChannelVO
;
import
com.jiejing.paycenter.common.model.vo.MerchantVO
;
...
...
@@ -413,9 +414,14 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
if
(
null
==
oldMerchantId
)
{
return
;
}
List
<
String
>
systemXcxAppIds
=
configService
.
getDefaultBrandSubChannelInfo
().
getSubChannelConfigs
()
.
stream
().
filter
(
e
->
SubChannelConfigTypeEnums
.
WX_XCX_OFFLINE
==
e
.
getConfigType
())
.
map
(
SubChannelConfigInfo:
:
getAppId
).
collect
(
Collectors
.
toList
());
MerchantVO
merchant
=
merchantRpcService
.
getByMerchantId
(
oldMerchantId
);
merchant
.
getSubChannelConfigs
().
stream
()
.
filter
(
e
->
SubChannelConfigTypeEnums
.
WX_XCX_OFFLINE
.
name
().
equals
(
e
.
getConfigType
()))
.
filter
(
e
->
!
systemXcxAppIds
.
contains
(
e
.
getAppId
()))
.
forEach
(
config
->
merchantRpcService
.
bindAppIdWxXcxOffline
(
merchant
.
getChannelNo
(),
newMerchantId
,
config
.
getAppId
()));
...
...
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