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
13910bf4
Commit
13910bf4
authored
Jun 07, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管账号
parent
8a329d27
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+2
-1
WxEnterpriseService.java
...ic/haoban/manage/service/service/WxEnterpriseService.java
+1
-1
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+1
-1
OpenStaffApiServiceImpl.java
...age/service/service/out/impl/OpenStaffApiServiceImpl.java
+4
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
13910bf4
...
...
@@ -95,5 +95,5 @@ public interface WxEnterpriseMapper {
*/
List
<
String
>
listWxEnterpriseByCallbackFlag
(
@Param
(
"callbackFlag"
)
Integer
callbackFlag
);
String
getWxEnterpriseIdByName
(
@Param
(
"corpName"
)
String
corpName
);
List
<
String
>
getWxEnterpriseIdByName
(
@Param
(
"corpName"
)
String
corpName
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseService.java
View file @
13910bf4
...
...
@@ -104,6 +104,6 @@ public interface WxEnterpriseService {
* @param corpName
* @return
*/
String
getWxEnterpriseIdByName
(
String
corpName
)
;
List
<
String
>
getWxEnterpriseIdByName
(
String
corpName
)
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
13910bf4
...
...
@@ -318,7 +318,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
@Override
public
String
getWxEnterpriseIdByName
(
String
corpName
)
{
public
List
<
String
>
getWxEnterpriseIdByName
(
String
corpName
)
{
return
this
.
mapper
.
getWxEnterpriseIdByName
(
corpName
)
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/OpenStaffApiServiceImpl.java
View file @
13910bf4
...
...
@@ -13,6 +13,7 @@ import com.gic.haoban.manage.service.service.OpenStaffService;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.util.OpenUtils
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
...
...
@@ -20,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
/**
* 企微托管账号
...
...
@@ -62,8 +64,8 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
return
ServiceResponse
.
failure
(
"9999"
,
"登录错误"
)
;
}
String
wxEnterpriseId
=
openStaff
.
getWxEnterpriseId
()
;
String
backWxEnterpriseId
=
this
.
wxEnterpriseService
.
getWxEnterpriseIdByName
(
corpName
)
;
if
(
StringUtils
.
isBlank
(
backWxEnterpriseId
)
||
!
backWxEnterpriseId
.
equals
(
wxEnterpriseId
))
{
List
<
String
>
backWxEnterpriseIdList
=
this
.
wxEnterpriseService
.
getWxEnterpriseIdByName
(
corpName
)
;
if
(
CollectionUtils
.
isNotEmpty
(
backWxEnterpriseIdList
)
||
backWxEnterpriseIdList
.
size
()>
1
||
!
backWxEnterpriseIdList
.
get
(
0
)
.
equals
(
wxEnterpriseId
))
{
OpenUtils
.
logout
(
uuid
);
log
.
info
(
"登录的企业不对={},{}"
,
uuid
,
corpName
);
return
ServiceResponse
.
failure
(
"9999"
,
"登录错误"
)
;
...
...
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