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
62815b70
Commit
62815b70
authored
Aug 14, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加半屏小程序
parent
e2c65b6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
repository/src/main/java/com/jiejing/fitness/finance/repository/service/StudioEmbeddedXcxApplyRpService.java
+6
-9
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+4
-4
No files found.
repository/src/main/java/com/jiejing/fitness/finance/repository/service/StudioEmbeddedXcxApplyRpService.java
View file @
62815b70
...
...
@@ -36,26 +36,23 @@ import org.springframework.stereotype.Service;
public
class
StudioEmbeddedXcxApplyRpService
extends
MapperRepoService
<
Long
,
StudioEmbeddedXcxApply
,
StudioEmbeddedXcxApplyMapper
>
{
public
Map
<
String
,
StudioEmbeddedXcxApply
>
mapBy
StudioIdAndAppId
(
Long
studio
Id
,
String
componentAppId
,
String
embeddedAppId
,
List
<
String
>
appIds
)
{
return
this
.
listBy
StudioIdAndAppId
(
studioId
,
componentAppId
,
embeddedAppId
,
appIds
)
public
Map
<
String
,
StudioEmbeddedXcxApply
>
mapBy
AppId
(
String
componentAppId
,
String
embeddedApp
Id
,
List
<
String
>
appIds
)
{
return
this
.
listBy
AppId
(
componentAppId
,
embeddedAppId
,
appIds
)
.
stream
().
collect
(
Collectors
.
toMap
(
StudioEmbeddedXcxApply:
:
getAuthorizerAppId
,
e
->
e
));
}
public
List
<
StudioEmbeddedXcxApply
>
listBy
StudioIdAndAppId
(
Long
studioId
,
String
component
AppId
,
String
embeddedAppId
,
List
<
String
>
appIds
)
{
public
List
<
StudioEmbeddedXcxApply
>
listBy
AppId
(
String
componentAppId
,
String
embedded
AppId
,
List
<
String
>
appIds
)
{
QueryWrapper
<
StudioEmbeddedXcxApply
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
STUDIO_ID
,
studioId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
COMPONENT_APP_ID
,
componentAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
EMBEDDED_APP_ID
,
embeddedAppId
);
wrapper
.
in
(
StudioEmbeddedXcxApply
.
AUTHORIZER_APP_ID
,
appIds
);
return
Optional
.
ofNullable
(
this
.
baseMapper
.
selectList
(
wrapper
)).
orElse
(
new
ArrayList
<>(
1
));
}
public
StudioEmbeddedXcxApply
getByStudioIdAndAppId
(
Long
studioId
,
String
componentAppId
,
String
embeddedAppId
,
String
appId
)
{
public
StudioEmbeddedXcxApply
getByAppId
(
String
componentAppId
,
String
embeddedAppId
,
String
appId
)
{
QueryWrapper
<
StudioEmbeddedXcxApply
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
STUDIO_ID
,
studioId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
COMPONENT_APP_ID
,
componentAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
EMBEDDED_APP_ID
,
embeddedAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
AUTHORIZER_APP_ID
,
appId
);
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
62815b70
...
...
@@ -267,8 +267,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
@Override
public
StudioEmbeddedXcxVO
getEmbeddedXcx
(
Long
studioId
,
String
appId
)
{
StudioEmbeddedXcxApply
embeddedXcx
=
studioEmbeddedXcxApplyRpService
.
getBy
StudioIdAndAppId
(
studioId
,
wxComponentAppId
,
embeddedAppId
,
appId
);
StudioEmbeddedXcxApply
embeddedXcx
=
studioEmbeddedXcxApplyRpService
.
getBy
AppId
(
wxComponentAppId
,
embeddedAppId
,
appId
);
if
(
null
==
embeddedXcx
)
{
return
null
;
}
...
...
@@ -281,8 +281,8 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
return
;
}
Map
<
String
,
StudioEmbeddedXcxApply
>
existMap
=
studioEmbeddedXcxApplyRpService
.
mapBy
StudioIdAnd
AppId
(
studioId
,
wxComponentAppId
,
embeddedAppId
,
appIds
);
Map
<
String
,
StudioEmbeddedXcxApply
>
existMap
=
studioEmbeddedXcxApplyRpService
.
mapByAppId
(
wxComponentAppId
,
embeddedAppId
,
appIds
);
appIds
.
stream
()
.
filter
(
appId
->
null
==
existMap
.
get
(
appId
)
||
EmbededXcxEnum
.
isFail
(
existMap
.
get
(
appId
).
getState
()))
.
forEach
(
appId
->
{
...
...
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