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
600c723c
Commit
600c723c
authored
Aug 14, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加半屏小程序
parent
41fe69ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/StudioEmbeddedXcxConvert.java
+9
-0
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+8
-3
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/merchant/convert/StudioEmbeddedXcxConvert.java
View file @
600c723c
...
...
@@ -74,4 +74,13 @@ public class StudioEmbeddedXcxConvert {
.
build
())
.
collect
(
Collectors
.
toList
());
}
public
static
StudioEmbeddedXcxApply
toInit
(
StudioEmbeddedXcxApply
entity
)
{
StudioEmbeddedXcxApply
toInit
=
new
StudioEmbeddedXcxApply
();
toInit
.
setId
(
entity
.
getId
());
toInit
.
setState
(
EmbededXcxEnum
.
INIT
.
getCode
());
toInit
.
setCreateTime
(
new
Date
());
toInit
.
setUpdateTime
(
new
Date
());
return
toInit
;
}
}
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
600c723c
...
...
@@ -263,12 +263,17 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
Map
<
String
,
StudioEmbeddedXcxApply
>
existMap
=
studioEmbeddedXcxApplyRpService
.
mapByStudioIdAndAuthorizerAppId
(
studioId
,
wxComponentAppId
,
systemXcxAppId
,
authorizerAppIds
);
authorizerAppIds
.
stream
()
.
filter
(
appId
->
null
==
existMap
.
get
(
appId
))
.
filter
(
appId
->
null
==
existMap
.
get
(
appId
)
||
EmbededXcxEnum
.
isFail
(
existMap
.
get
(
appId
).
getState
())
)
.
forEach
(
appId
->
{
log
.
info
(
"bind embedded xcx {}, {}"
,
studioId
,
appId
);
StudioEmbeddedXcxApply
entity
=
StudioEmbeddedXcxConvert
.
toEntity
(
studioId
,
wxComponentAppId
,
systemXcxAppId
,
appId
);
StudioEmbeddedXcxApply
entity
=
existMap
.
get
(
appId
);
if
(
null
==
entity
)
{
entity
=
StudioEmbeddedXcxConvert
.
toEntity
(
studioId
,
wxComponentAppId
,
systemXcxAppId
,
appId
);
studioEmbeddedXcxApplyRpService
.
insert
(
entity
);
}
else
{
studioEmbeddedXcxApplyRpService
.
updateById
(
StudioEmbeddedXcxConvert
.
toInit
(
entity
));
}
try
{
JSONObject
result
=
weXcxService
.
addEmbeddedXcx
(
wxComponentAppId
,
appId
,
systemXcxAppId
,
"申请半屏小程序"
);
...
...
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