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
3730696d
Commit
3730696d
authored
Jan 20, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:企微授权修改
parent
1d3e256a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
20 deletions
+30
-20
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+11
-1
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+19
-19
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
3730696d
...
@@ -26,6 +26,11 @@ public interface WxEnterpriseApiService {
...
@@ -26,6 +26,11 @@ public interface WxEnterpriseApiService {
*/
*/
WxEnterpriseDTO
getOne
(
String
wxEnterpriseId
);
WxEnterpriseDTO
getOne
(
String
wxEnterpriseId
);
/**
* 根据corpId查询一条数据
* @param corpId
* @return
*/
WxEnterpriseDTO
getEnterpriseBycorpId
(
String
corpId
);
WxEnterpriseDTO
getEnterpriseBycorpId
(
String
corpId
);
/**
/**
* 更新企业
* 更新企业
...
@@ -36,7 +41,12 @@ public interface WxEnterpriseApiService {
...
@@ -36,7 +41,12 @@ public interface WxEnterpriseApiService {
List
<
YwWxEnterpriseDTO
>
listAll
();
List
<
YwWxEnterpriseDTO
>
listAll
();
List
<
YwWxEnterpriseDTO
>
listByIds
(
Set
<
String
>
enterpriseIds
);
List
<
YwWxEnterpriseDTO
>
listByIds
(
Set
<
String
>
enterpriseIds
);
/**
* 企业是否过期 true是
* @param enterpriseId
* @return
*/
boolean
enterpriseIsOver
(
String
enterpriseId
);
boolean
enterpriseIsOver
(
String
enterpriseId
);
/**
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
3730696d
...
@@ -69,11 +69,11 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -69,11 +69,11 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
WxEnterpriseDTO
wxDTO
=
EntityUtil
.
changeEntityByJSON
(
WxEnterpriseDTO
.
class
,
dto
);
WxEnterpriseDTO
wxDTO
=
EntityUtil
.
changeEntityByJSON
(
WxEnterpriseDTO
.
class
,
dto
);
String
wxEnterpriseId
=
""
;
String
wxEnterpriseId
=
""
;
//获取授权好办小程序
//获取授权好办小程序
TabHaobanWxEnterprise
e
nterprise
=
this
.
wxEnterpriseService
.
getEnterpriseByCorpName
(
corpName
);
TabHaobanWxEnterprise
wxE
nterprise
=
this
.
wxEnterpriseService
.
getEnterpriseByCorpName
(
corpName
);
if
(
e
nterprise
!=
null
)
{
if
(
wxE
nterprise
!=
null
)
{
wxEnterpriseId
=
e
nterprise
.
getWxEnterpriseId
();
wxEnterpriseId
=
wxE
nterprise
.
getWxEnterpriseId
();
WxEnterpriseDTO
wxEnterpriseDTO
=
new
WxEnterpriseDTO
();
WxEnterpriseDTO
wxEnterpriseDTO
=
new
WxEnterpriseDTO
();
wxEnterpriseDTO
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
()
);
wxEnterpriseDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
wxEnterpriseDTO
.
setStatusFlag
(
1
);
wxEnterpriseDTO
.
setStatusFlag
(
1
);
wxEnterpriseDTO
.
setBindFlag
(
1
);
wxEnterpriseDTO
.
setBindFlag
(
1
);
wxEnterpriseService
.
update
(
wxDTO
);
wxEnterpriseService
.
update
(
wxDTO
);
...
@@ -83,24 +83,24 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -83,24 +83,24 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
if
(
StringUtils
.
isNotBlank
(
userId
))
{
if
(
StringUtils
.
isNotBlank
(
userId
))
{
staffApiService
.
wxGetAdd
(
userId
,
wxEnterpriseId
);
staffApiService
.
wxGetAdd
(
userId
,
wxEnterpriseId
);
}
}
TabHaobanWxApplication
tab
=
wxApplicationService
.
selectBySiteIdAndWxEnterpriseId
(
siteId
,
wxEnterpriseId
);
TabHaobanWxApplication
haobanWxApplication
=
wxApplicationService
.
selectBySiteIdAndWxEnterpriseId
(
siteId
,
wxEnterpriseId
);
if
(
tab
==
null
)
{
if
(
haobanWxApplication
==
null
)
{
tab
=
new
TabHaobanWxApplication
();
haobanWxApplication
=
new
TabHaobanWxApplication
();
tab
.
setAgentId
(
agentId
);
haobanWxApplication
.
setAgentId
(
agentId
);
tab
.
setCorpid
(
corpid
);
haobanWxApplication
.
setCorpid
(
corpid
);
tab
.
setSiteId
(
siteId
);
haobanWxApplication
.
setSiteId
(
siteId
);
tab
.
setAgentName
(
agentName
);
haobanWxApplication
.
setAgentName
(
agentName
);
tab
.
setName
(
applicationName
);
haobanWxApplication
.
setName
(
applicationName
);
tab
.
setPermanentCode
(
permanentCode
);
haobanWxApplication
.
setPermanentCode
(
permanentCode
);
tab
.
setIsCustomizedApp
(
isCustomizedApp
);
haobanWxApplication
.
setIsCustomizedApp
(
isCustomizedApp
);
if
(
isCustomizedApp
!=
null
&&
isCustomizedApp
==
1
)
{
if
(
isCustomizedApp
!=
null
&&
isCustomizedApp
==
1
)
{
tab
.
setApplicationType
(
3
);
haobanWxApplication
.
setApplicationType
(
3
);
}
}
tab
.
setWxEnterpriseId
(
wxEnterpriseId
);
haobanWxApplication
.
setWxEnterpriseId
(
wxEnterpriseId
);
wxApplicationService
.
insert
(
tab
);
wxApplicationService
.
insert
(
haobanWxApplication
);
}
else
{
}
else
{
tab
.
setPermanentCode
(
permanentCode
);
haobanWxApplication
.
setPermanentCode
(
permanentCode
);
wxApplicationService
.
update
(
tab
);
wxApplicationService
.
update
(
haobanWxApplication
);
}
}
//企业代开发Secret = permanentCode
//企业代开发Secret = permanentCode
if
(
isCustomizedApp
!=
null
&&
isCustomizedApp
==
1
)
{
if
(
isCustomizedApp
!=
null
&&
isCustomizedApp
==
1
)
{
...
...
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