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
dba34d27
Commit
dba34d27
authored
May 27, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好办企业解绑操作
parent
492de1b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
WxEnterpriseService.java
...ic/haoban/manage/service/service/WxEnterpriseService.java
+2
-0
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+16
-7
WxApplicationApiServiceImpl.java
...service/service/out/impl/WxApplicationApiServiceImpl.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseService.java
View file @
dba34d27
...
@@ -27,5 +27,7 @@ public interface WxEnterpriseService {
...
@@ -27,5 +27,7 @@ public interface WxEnterpriseService {
int
delete
(
String
wxEnterpriseId
);
int
delete
(
String
wxEnterpriseId
);
int
unbind
(
String
wxEnterpriseId
);
TabHaobanWxEnterprise
getEnterpriseBycorpIdNoStatus
(
String
corpid
);
TabHaobanWxEnterprise
getEnterpriseBycorpIdNoStatus
(
String
corpid
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
dba34d27
...
@@ -71,12 +71,21 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
...
@@ -71,12 +71,21 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
}
@Override
@Override
public
TabHaobanWxEnterprise
getEnterpriseBycorpIdNoStatus
(
String
corpId
)
{
public
int
unbind
(
String
wxEnterpriseId
)
{
List
<
TabHaobanWxEnterprise
>
list
=
this
.
mapper
.
getEnterpriseBycorpIdNoStatus
(
corpId
);
TabHaobanWxEnterprise
enterprise
=
new
TabHaobanWxEnterprise
();
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
enterprise
.
setWxEnterpriseId
(
wxEnterpriseId
);
return
list
.
get
(
0
);
enterprise
.
setStatusFlag
(
2
);
}
enterprise
.
setUpdateTime
(
new
Date
());
return
null
;
return
this
.
mapper
.
updateByPrimaryKeySelective
(
enterprise
);
}
}
@Override
public
TabHaobanWxEnterprise
getEnterpriseBycorpIdNoStatus
(
String
corpId
)
{
List
<
TabHaobanWxEnterprise
>
list
=
this
.
mapper
.
getEnterpriseBycorpIdNoStatus
(
corpId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
list
.
get
(
0
);
}
return
null
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxApplicationApiServiceImpl.java
View file @
dba34d27
...
@@ -40,8 +40,8 @@ public class WxApplicationApiServiceImpl implements WxApplicationApiService{
...
@@ -40,8 +40,8 @@ public class WxApplicationApiServiceImpl implements WxApplicationApiService{
int
i
=
this
.
wxApplicationService
.
cancalWxApplication
(
enterprise
.
getWxEnterpriseId
(),
suiteId
);
int
i
=
this
.
wxApplicationService
.
cancalWxApplication
(
enterprise
.
getWxEnterpriseId
(),
suiteId
);
log
.
info
(
"取消授权结果:{}"
,
i
);
log
.
info
(
"取消授权结果:{}"
,
i
);
TabHaobanWxApplication
wxApplication
=
this
.
wxApplicationService
.
selectByWxEnterpriseIdAndApplicationType
(
enterprise
.
getWxEnterpriseId
(),
2
);
TabHaobanWxApplication
wxApplication
=
this
.
wxApplicationService
.
selectByWxEnterpriseIdAndApplicationType
(
enterprise
.
getWxEnterpriseId
(),
2
);
if
(
wxApplication
==
null
){
//如果取消好办小程序应用授权,删除企业
if
(
wxApplication
==
null
)
{
//如果取消好办小程序应用授权,临时解除绑定
this
.
wxEnterpriseService
.
delete
(
enterprise
.
getWxEnterpriseId
());
this
.
wxEnterpriseService
.
unbind
(
enterprise
.
getWxEnterpriseId
());
}
}
}
}
log
.
info
(
"企业未绑定过,{}"
,
corpId
);
log
.
info
(
"企业未绑定过,{}"
,
corpId
);
...
...
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