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
fc45062e
Commit
fc45062e
authored
Feb 26, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:global config
parent
d72b2281
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/MerchantConvert.java
+4
-2
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/BrandMerchantServiceImpl.java
+2
-1
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/MerchantConvert.java
View file @
fc45062e
...
@@ -420,8 +420,10 @@ public class MerchantConvert {
...
@@ -420,8 +420,10 @@ public class MerchantConvert {
return
ResourceInfo
.
builder
().
resourceId
(
id
).
type
(
type
).
build
();
return
ResourceInfo
.
builder
().
resourceId
(
id
).
type
(
type
).
build
();
}
}
public
static
BrandMerchantVO
convertBrandMerchant
(
BrandToMerchant
relation
,
MerchantVO
merchant
)
{
public
static
BrandMerchantVO
convertBrandMerchant
(
BrandToMerchant
relation
,
MerchantVO
merchant
,
Map
<
SubChannelOpenTypeEnums
,
SubChannelInfo
>
channelMap
=
convertSubChannelMap
(
merchant
.
getSubChannels
());
List
<
SubChannelInfo
>
defaultSubChannels
)
{
Map
<
SubChannelOpenTypeEnums
,
SubChannelInfo
>
channelMap
=
convertSubChannelMap
(
merchant
.
getSubChannels
(),
defaultSubChannels
);
SubChannelInfo
ali
=
channelMap
.
get
(
SubChannelOpenTypeEnums
.
ALI_OFFLINE
);
SubChannelInfo
ali
=
channelMap
.
get
(
SubChannelOpenTypeEnums
.
ALI_OFFLINE
);
SubChannelInfo
wxGzhOffline
=
channelMap
.
get
(
SubChannelOpenTypeEnums
.
WX_GZH_OFFLINE
);
SubChannelInfo
wxGzhOffline
=
channelMap
.
get
(
SubChannelOpenTypeEnums
.
WX_GZH_OFFLINE
);
OpenStateEnums
wxOfflineState
=
convertWxOfflineState
(
channelMap
);
OpenStateEnums
wxOfflineState
=
convertWxOfflineState
(
channelMap
);
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/BrandMerchantServiceImpl.java
View file @
fc45062e
...
@@ -128,7 +128,8 @@ public class BrandMerchantServiceImpl implements BrandMerchantService {
...
@@ -128,7 +128,8 @@ public class BrandMerchantServiceImpl implements BrandMerchantService {
public
BrandMerchantVO
getMerchant
(
Long
brandId
)
{
public
BrandMerchantVO
getMerchant
(
Long
brandId
)
{
BrandToMerchant
relation
=
brandToMerchantRpService
.
getByBrandId
(
brandId
);
BrandToMerchant
relation
=
brandToMerchantRpService
.
getByBrandId
(
brandId
);
MerchantVO
merchant
=
merchantRpcService
.
getByMerchantId
(
relation
.
getMerchantId
());
MerchantVO
merchant
=
merchantRpcService
.
getByMerchantId
(
relation
.
getMerchantId
());
return
MerchantConvert
.
convertBrandMerchant
(
relation
,
merchant
);
return
MerchantConvert
.
convertBrandMerchant
(
relation
,
merchant
,
getDefaultBrandSubChannelInfo
().
getSubChannels
());
}
}
@Override
@Override
...
...
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