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
3db0a744
Commit
3db0a744
authored
Aug 14, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加半屏小程序
parent
81347470
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
repository/src/main/java/com/jiejing/fitness/finance/repository/entity/StudioEmbeddedXcxApply.java
+4
-4
repository/src/main/java/com/jiejing/fitness/finance/repository/mapper/StudioEmbeddedXcxApplyMapper.xml
+1
-1
repository/src/main/java/com/jiejing/fitness/finance/repository/service/StudioEmbeddedXcxApplyRpService.java
+4
-4
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/StudioEmbeddedXcxConvert.java
+4
-4
No files found.
repository/src/main/java/com/jiejing/fitness/finance/repository/entity/StudioEmbeddedXcxApply.java
View file @
3db0a744
...
...
@@ -57,14 +57,14 @@ public class StudioEmbeddedXcxApply implements Serializable {
private
String
componentAppId
;
/**
* 备注: 授权方appId(
专属小程序
) 是否允许为null: YES
* 备注: 授权方appId(
申请小程序appId
) 是否允许为null: YES
*/
private
String
authorizerAppId
;
/**
* 备注:
支付
小程序appId 是否允许为null: YES
* 备注:
半屏
小程序appId 是否允许为null: YES
*/
private
String
a
ppId
;
private
String
embeddedA
ppId
;
/**
* 备注: 状态 是否允许为null: YES
...
...
@@ -95,7 +95,7 @@ public class StudioEmbeddedXcxApply implements Serializable {
public
static
final
String
AUTHORIZER_APP_ID
=
"authorizer_app_id"
;
public
static
final
String
APP_ID
=
"
app_id"
;
public
static
final
String
EMBEDDED_APP_ID
=
"embedded_
app_id"
;
public
static
final
String
STATE
=
"state"
;
...
...
repository/src/main/java/com/jiejing/fitness/finance/repository/mapper/StudioEmbeddedXcxApplyMapper.xml
View file @
3db0a744
...
...
@@ -17,7 +17,7 @@
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, studio_id, component_app_id,
authorizer_app_id,
app_id, state, message, create_time, update_time
id, studio_id, component_app_id,
embedded_app_id, authorizer_
app_id, state, message, create_time, update_time
</sql>
</mapper>
repository/src/main/java/com/jiejing/fitness/finance/repository/service/StudioEmbeddedXcxApplyRpService.java
View file @
3db0a744
...
...
@@ -39,7 +39,7 @@ public class StudioEmbeddedXcxApplyRpService extends
public
Map
<
String
,
StudioEmbeddedXcxApply
>
mapByStudioIdAndAppId
(
Long
studioId
,
String
componentAppId
,
String
embeddedAppId
,
List
<
String
>
appIds
)
{
return
this
.
listByStudioIdAndAppId
(
studioId
,
componentAppId
,
embeddedAppId
,
appIds
)
.
stream
().
collect
(
Collectors
.
toMap
(
StudioEmbeddedXcxApply:
:
getAppId
,
e
->
e
));
.
stream
().
collect
(
Collectors
.
toMap
(
StudioEmbeddedXcxApply:
:
getA
uthorizerA
ppId
,
e
->
e
));
}
public
List
<
StudioEmbeddedXcxApply
>
listByStudioIdAndAppId
(
Long
studioId
,
String
componentAppId
,
...
...
@@ -47,7 +47,7 @@ public class StudioEmbeddedXcxApplyRpService extends
QueryWrapper
<
StudioEmbeddedXcxApply
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
STUDIO_ID
,
studioId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
COMPONENT_APP_ID
,
componentAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
APP_ID
,
embeddedAppId
);
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
));
}
...
...
@@ -57,7 +57,7 @@ public class StudioEmbeddedXcxApplyRpService extends
QueryWrapper
<
StudioEmbeddedXcxApply
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
STUDIO_ID
,
studioId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
COMPONENT_APP_ID
,
componentAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
APP_ID
,
embeddedAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
EMBEDDED_
APP_ID
,
embeddedAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
AUTHORIZER_APP_ID
,
appId
);
return
Optional
.
ofNullable
(
this
.
baseMapper
.
selectList
(
wrapper
))
.
orElse
(
new
ArrayList
<>(
1
))
...
...
@@ -68,7 +68,7 @@ public class StudioEmbeddedXcxApplyRpService extends
List
<
String
>
appIds
)
{
QueryWrapper
<
StudioEmbeddedXcxApply
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
COMPONENT_APP_ID
,
componentAppId
);
wrapper
.
eq
(
StudioEmbeddedXcxApply
.
APP_ID
,
embeddedAppId
);
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
));
}
...
...
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/StudioEmbeddedXcxConvert.java
View file @
3db0a744
...
...
@@ -22,7 +22,7 @@ public class StudioEmbeddedXcxConvert {
record
.
setId
(
IdWorker
.
getId
());
record
.
setComponentAppId
(
componentAppId
);
record
.
setAuthorizerAppId
(
appId
);
record
.
setAppId
(
embeddedAppId
);
record
.
set
Embedded
AppId
(
embeddedAppId
);
record
.
setStudioId
(
studioId
);
record
.
setState
(
EmbededXcxEnum
.
INIT
.
getCode
());
record
.
setCreateTime
(
new
Date
());
...
...
@@ -51,7 +51,7 @@ public class StudioEmbeddedXcxConvert {
public
static
List
<
Long
>
filterAppIds
(
List
<
StudioEmbeddedXcxApply
>
applies
,
List
<
String
>
appIds
)
{
return
applies
.
stream
()
.
filter
(
e
->
!
EmbededXcxEnum
.
SUCCESS
.
getCode
().
equals
(
e
.
getState
()))
.
filter
(
e
->
appIds
.
contains
(
e
.
getAppId
()))
.
filter
(
e
->
appIds
.
contains
(
e
.
getA
uthorizerA
ppId
()))
.
map
(
StudioEmbeddedXcxApply:
:
getId
)
.
collect
(
Collectors
.
toList
());
}
...
...
@@ -61,9 +61,9 @@ public class StudioEmbeddedXcxConvert {
Map
<
String
,
AuthXcxInfo
>
map
=
authXcxInfos
.
stream
()
.
collect
(
Collectors
.
toMap
(
AuthXcxInfo:
:
getAppId
,
e
->
e
));
return
applies
.
stream
()
.
filter
(
e
->
null
!=
map
.
get
(
e
.
getAppId
()))
.
filter
(
e
->
null
!=
map
.
get
(
e
.
getA
uthorizerA
ppId
()))
.
filter
(
e
->
{
AuthXcxInfo
info
=
map
.
get
(
e
.
getAppId
());
AuthXcxInfo
info
=
map
.
get
(
e
.
getA
uthorizerA
ppId
());
return
EmbededXcxEnum
.
valueOf
(
e
.
getState
())
!=
EmbededXcxEnum
.
getByWxCode
(
Integer
.
parseInt
(
info
.
getStatus
()));
})
...
...
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