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
dcb29c38
Commit
dcb29c38
authored
Dec 20, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:代开发授权修改
parent
83cc66fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+14
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
dcb29c38
...
...
@@ -19,6 +19,7 @@ import com.gic.haoban.manage.service.entity.TabMiniprogramSetting;
import
com.gic.haoban.manage.service.entity.TabWelcome
;
import
com.gic.haoban.manage.service.pojo.bo.StaffPrivacyUseLogBO
;
import
com.gic.haoban.manage.service.service.*
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -53,6 +54,8 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
private
TabHaobanWelcomeMapper
welcomeMapper
;
@Autowired
private
StaffPrivacyUseLogService
staffPrivacyUseLogService
;
@Autowired
private
QywxUserApiService
qywxUserApiService
;
@Override
public
void
callbackReviceEnterprise
(
QywxCorpInfoSimpleDTO
dto
)
{
...
...
@@ -67,9 +70,17 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
Integer
isCustomizedApp
=
dto
.
getIsCustomizedApp
();
WxEnterpriseDTO
wxDTO
=
EntityUtil
.
changeEntityByJSON
(
WxEnterpriseDTO
.
class
,
dto
);
String
wxEnterpriseId
=
""
;
//授权好办小程序
if
(
isCustomizedApp
==
null
||
isCustomizedApp
!=
1
)
{
//只需要插入好办小程序企业,代开发 企业表不插入
if
(
isCustomizedApp
!=
null
&&
isCustomizedApp
==
1
)
{
//代开发
String
toOpenCorpid
=
qywxUserApiService
.
toOpenCorpid
(
corpid
,
siteId
);
log
.
info
(
"明文corpid:{},加密后的toOpenCorpid为:{}"
,
corpid
,
toOpenCorpid
);
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpIdNoStatus
(
toOpenCorpid
);
if
(
enterprise
!=
null
)
{
wxEnterpriseId
=
enterprise
.
getWxEnterpriseId
();
}
}
else
{
//授权好办小程序
//只需要插入更新好办小程序企业,代开发 企业表不插入
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpIdNoStatus
(
corpid
);
if
(
enterprise
!=
null
)
{
wxEnterpriseId
=
enterprise
.
getWxEnterpriseId
();
...
...
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