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
b0ae4667
Commit
b0ae4667
authored
Jun 11, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管账号
parent
5284bab4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
OpenStaffService.java
...m/gic/haoban/manage/service/service/OpenStaffService.java
+1
-1
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+2
-2
OpenStaffApiServiceImpl.java
...age/service/service/out/impl/OpenStaffApiServiceImpl.java
+5
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/OpenStaffService.java
View file @
b0ae4667
...
...
@@ -15,7 +15,7 @@ public interface OpenStaffService {
public
TabOpenStaff
getByUUID
(
String
uuid
)
;
public
void
logout
(
String
uuid
,
String
loginRemark
)
;
public
void
logout
(
String
uuid
,
String
loginRemark
,
int
step
)
;
ServiceResponse
<
Page
<
OpenStaffDTO
>>
page
(
OpenStaffPageQDTO
qdto
,
BasePageInfo
basePageInfo
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/OpenStaffServiceImpl.java
View file @
b0ae4667
...
...
@@ -56,13 +56,13 @@ public class OpenStaffServiceImpl implements OpenStaffService {
}
@Override
public
void
logout
(
String
uuid
,
String
loginRemark
)
{
public
void
logout
(
String
uuid
,
String
loginRemark
,
int
step
)
{
TabOpenStaff
openStaff
=
this
.
getByUUID
(
uuid
)
;
if
(
null
==
openStaff
)
{
return
;
}
OpenUtils
.
logout
(
uuid
);
openStaff
.
setStep
(
0
);
openStaff
.
setStep
(
step
);
openStaff
.
setStatusFlag
(
2
);
openStaff
.
setValidFlag
(
0
);
openStaff
.
setValidQrcodeFlag
(
0
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/OpenStaffApiServiceImpl.java
View file @
b0ae4667
...
...
@@ -92,7 +92,7 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
}
this
.
openStaffMapper
.
updateLoginStep
(
openStaff
.
getOpenStaffId
(),
step
)
;
if
(
QwOpenStepEnum
.
isFail
(
step
))
{
this
.
openStaffService
.
logout
(
uuid
,
"企微返回退出/登录超时"
);
this
.
openStaffService
.
logout
(
uuid
,
"企微返回退出/登录超时"
,
0
);
}
return
ServiceResponse
.
success
();
}
...
...
@@ -106,13 +106,13 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
String
wxEnterpriseId
=
openStaff
.
getWxEnterpriseId
()
;
List
<
String
>
backWxEnterpriseIdList
=
this
.
wxEnterpriseService
.
getWxEnterpriseIdByName
(
corpName
)
;
if
(
CollectionUtils
.
isEmpty
(
backWxEnterpriseIdList
)
||
backWxEnterpriseIdList
.
size
()>
1
||
!
backWxEnterpriseIdList
.
get
(
0
).
equals
(
wxEnterpriseId
))
{
this
.
openStaffService
.
logout
(
uuid
,
"授权登录账号与当前账号不一致"
);
this
.
openStaffService
.
logout
(
uuid
,
"授权登录账号与当前账号不一致"
,
10
);
log
.
info
(
"登录的企业不对={},{}"
,
uuid
,
corpName
);
return
ServiceResponse
.
failure
(
"9999"
,
"登录错误"
)
;
}
TabOpenStaff
staff
=
this
.
openStaffMapper
.
getByQwUserId
(
qwUserId
)
;
if
(
null
!=
staff
&&
staff
.
getWxEnterpriseId
().
equals
(
wxEnterpriseId
))
{
this
.
openStaffService
.
logout
(
uuid
,
"只能托管一个企微企业"
);
this
.
openStaffService
.
logout
(
uuid
,
"只能托管一个企微企业"
,
0
);
log
.
info
(
"只能托管一个企业={},{}"
,
uuid
,
corpName
);
return
ServiceResponse
.
failure
(
"9999"
,
"只能托管一个企业"
)
;
}
...
...
@@ -129,7 +129,7 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
@Override
public
ServiceResponse
<
Void
>
logout
(
String
uuid
)
{
this
.
openStaffService
.
logout
(
uuid
,
null
);
this
.
openStaffService
.
logout
(
uuid
,
null
,
0
);
return
ServiceResponse
.
success
();
}
...
...
@@ -180,7 +180,7 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
}
qwUserId
=
openStaff
.
getQwUserId
()
;
log
.
info
(
"重新初始化,退出登录"
);
this
.
openStaffService
.
logout
(
openStaff
.
getUuid
(),
"重新初始化,退出登录"
);
this
.
openStaffService
.
logout
(
openStaff
.
getUuid
(),
"重新初始化,退出登录"
,
0
);
}
if
(
null
==
openStaff
)
{
openStaff
=
new
TabOpenStaff
()
;
...
...
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