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
4e00c8c8
Commit
4e00c8c8
authored
Apr 08, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:file
parent
5b38b5d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+16
-13
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
4e00c8c8
...
...
@@ -196,18 +196,6 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
return
MerchantConvert
.
convertApply
(
apply
,
urlMap
);
}
private
Map
<
Long
,
String
>
getResouceseUrlMap
(
StudioMerchantApply
apply
)
{
List
<
Long
>
resourceIds
=
this
.
getResourceIds
(
apply
);
return
resourceRpcService
.
getResourceUrlMap
(
apply
.
getBrandId
(),
resourceIds
);
}
private
List
<
Long
>
getResourceIds
(
StudioMerchantApply
apply
)
{
ApplyStudioMerchantParams
info
=
JSON
.
parseObject
(
apply
.
getMerchantInfo
(),
ApplyStudioMerchantParams
.
class
);
return
info
.
getResourceMap
().
values
().
stream
().
map
(
BrandResourceInfo:
:
getResourceId
)
.
collect
(
Collectors
.
toList
());
}
@Override
public
PageVO
<
StudioMerchantApplyVO
>
pageApply
(
PageStudioMerchantApplyParams
params
)
{
Page
<
StudioMerchantApply
>
page
=
studioMerchantApplyRpService
.
page
(
BeanUtil
.
map
(
params
,
...
...
@@ -221,7 +209,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
if
(
null
==
apply
)
{
return
null
;
}
return
MerchantConvert
.
convertApply
(
apply
,
null
);
Map
<
Long
,
String
>
urlMap
=
this
.
getResouceseUrlMap
(
apply
);
return
MerchantConvert
.
convertApply
(
apply
,
urlMap
);
}
@Override
...
...
@@ -382,4 +371,18 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
}
}
private
Map
<
Long
,
String
>
getResouceseUrlMap
(
StudioMerchantApply
apply
)
{
List
<
Long
>
resourceIds
=
this
.
getResourceIds
(
apply
);
return
resourceRpcService
.
getResourceUrlMap
(
apply
.
getBrandId
(),
resourceIds
);
}
private
List
<
Long
>
getResourceIds
(
StudioMerchantApply
apply
)
{
ApplyStudioMerchantParams
info
=
JSON
.
parseObject
(
apply
.
getMerchantInfo
(),
ApplyStudioMerchantParams
.
class
);
return
info
.
getResourceMap
().
values
().
stream
().
map
(
BrandResourceInfo:
:
getResourceId
)
.
collect
(
Collectors
.
toList
());
}
}
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