Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
44cafeb7
Commit
44cafeb7
authored
Sep 02, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员小程序
parent
21ea3b53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
SecretSettingMapper.xml
...service/src/main/resources/mapper/SecretSettingMapper.xml
+2
-2
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+12
-3
No files found.
haoban-manage3-service/src/main/resources/mapper/SecretSettingMapper.xml
View file @
44cafeb7
...
...
@@ -89,8 +89,8 @@
ORDER BY create_time desc LIMIT 1
</select>
<select
id=
"exsitGicEidMemberApp"
resultType=
"
String
"
>
select enterprise_id from tab_haoban_secret_setting where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
<select
id=
"exsitGicEidMemberApp"
resultType=
"
com.gic.haoban.manage.api.dto.SecretSettingDTO
"
>
select enterprise_id
enterpriseId , secret_id secretId
from tab_haoban_secret_setting where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and status_flag = 1 and secret_type = 4 and enterprise_id is not null
</select>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
44cafeb7
...
...
@@ -392,9 +392,18 @@ public class WxEnterpriseController extends WebBaseController {
if
(
null
==
secretSetting
)
{
secretSetting
=
new
SecretSettingDTO
();
}
List
<
SecretSettingDTO
>
eidList
=
this
.
secretSettingApiService
.
exsitGicEidMemberApp
(
wxEnterpriseId
)
;
if
(
CollectionUtils
.
isNotEmpty
(
eidList
)
&&
eidList
.
contains
(
enterpriseId
))
{
List
<
SecretSettingDTO
>
enList
=
this
.
secretSettingApiService
.
exsitGicEidMemberApp
(
wxEnterpriseId
)
;
if
(
CollectionUtils
.
isNotEmpty
(
enList
))
{
Map
<
String
,
SecretSettingDTO
>
map
=
enList
.
stream
().
collect
(
Collectors
.
toMap
(
SecretSettingDTO:
:
getEnterpriseId
,
dto
->
dto
,(
k1
,
k2
)->
k1
));
if
(
StringUtils
.
isEmpty
(
secretId
))
{
if
(
null
!=
map
.
get
(
enterpriseId
))
{
return
this
.
fail
(
"此商户小程序已存在"
)
;
}
}
else
{
if
(
null
!=
map
.
get
(
enterpriseId
)
&&
!
secretId
.
equals
(
map
.
get
(
enterpriseId
).
getSecretId
()))
{
return
this
.
fail
(
"此商户小程序已存在"
)
;
}
}
}
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
)
;
String
token
=
this
.
qywxCorpApiService
.
getToken
(
qwDTO
.
getMemberCorpid
(),
memberSecret
);
...
...
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