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
5b76aa85
Commit
5b76aa85
authored
Apr 18, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:登录bug修改
parent
2301b10a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+5
-5
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+5
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
5b76aa85
...
@@ -356,14 +356,14 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -356,14 +356,14 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
StaffPrivacyUseLogBO
staffPrivacyUseLogBO
=
new
StaffPrivacyUseLogBO
();
StaffPrivacyUseLogBO
staffPrivacyUseLogBO
=
new
StaffPrivacyUseLogBO
();
BeanUtils
.
copyProperties
(
staffPrivacyUseLogDTO
,
staffPrivacyUseLogBO
);
BeanUtils
.
copyProperties
(
staffPrivacyUseLogDTO
,
staffPrivacyUseLogBO
);
String
staffId
=
staffPrivacyUseLogDTO
.
getStaffId
();
String
staffId
=
staffPrivacyUseLogDTO
.
getStaffId
();
if
(
!
"-1"
.
equals
(
staffId
)
||
StringUtils
.
isNotBlank
(
staffId
))
{
if
(
StringUtils
.
isBlank
(
staffId
)
||
"-1"
.
equals
(
staffId
))
{
StaffPrivacyUseLogBO
privacyUseLog
=
staffPrivacyUseLogService
.
getByStaffId
(
staffId
);
StaffPrivacyUseLogBO
privacyUseLog
BO
=
staffPrivacyUseLogService
.
getByUserId
(
staffPrivacyUseLogDTO
.
getWxOpenUseId
()
);
if
(
privacyUseLog
==
null
)
{
if
(
privacyUseLog
BO
==
null
)
{
staffPrivacyUseLogService
.
insert
(
staffPrivacyUseLogBO
);
staffPrivacyUseLogService
.
insert
(
staffPrivacyUseLogBO
);
}
}
}
else
{
}
else
{
StaffPrivacyUseLogBO
privacyUseLog
BO
=
staffPrivacyUseLogService
.
getByUserId
(
staffPrivacyUseLogDTO
.
getWxOpenUseId
()
);
StaffPrivacyUseLogBO
privacyUseLog
=
staffPrivacyUseLogService
.
getByStaffId
(
staffId
);
if
(
privacyUseLog
BO
==
null
)
{
if
(
privacyUseLog
==
null
)
{
staffPrivacyUseLogService
.
insert
(
staffPrivacyUseLogBO
);
staffPrivacyUseLogService
.
insert
(
staffPrivacyUseLogBO
);
}
}
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
5b76aa85
...
@@ -133,7 +133,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -133,7 +133,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
StaffPrivacyUseLogDTO
staffPrivacyUseLogDTO
=
staffApiService
.
getStaffPrivacyByUserId
(
userId
);
StaffPrivacyUseLogDTO
staffPrivacyUseLogDTO
=
staffApiService
.
getStaffPrivacyByUserId
(
userId
);
wellDoneLoginInfoVo
.
setPrivacyUseFlag
(
staffPrivacyUseLogDTO
==
null
?
0
:
1
);
wellDoneLoginInfoVo
.
setPrivacyUseFlag
(
staffPrivacyUseLogDTO
==
null
?
0
:
1
);
wellDoneLoginInfoVo
.
setStaffId
(
"-1"
);
wellDoneLoginInfoVo
.
setStaffId
(
"-1"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wellDoneLoginInfoVo
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wellDoneLoginInfoVo
);
}
}
if
(
StringUtils
.
isNotBlank
(
loginStaff
.
getPhoneNumber
()))
{
if
(
StringUtils
.
isNotBlank
(
loginStaff
.
getPhoneNumber
()))
{
...
@@ -197,7 +197,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -197,7 +197,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
String
staffId
=
staffLoginQO
.
getStaffId
();
String
staffId
=
staffLoginQO
.
getStaffId
();
String
wxOpenUseId
=
staffLoginQO
.
getWxOpenUseId
();
String
wxOpenUseId
=
staffLoginQO
.
getWxOpenUseId
();
//-1 代表游客登录
//-1 代表游客登录
if
(
"-1"
.
equals
(
staffId
)
||
StringUtils
.
isBlank
(
staffId
))
{
if
(
StringUtils
.
isBlank
(
staffId
)
||
"-1"
.
equals
(
staffId
))
{
return
wellDoneLoginPrivacy
(
staffLoginQO
,
request
,
staffId
,
wxOpenUseId
);
return
wellDoneLoginPrivacy
(
staffLoginQO
,
request
,
staffId
,
wxOpenUseId
);
}
}
//用户登录
//用户登录
...
@@ -206,6 +206,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -206,6 +206,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
/**
/**
* 游客登录
* 游客登录
*
* @param staffLoginQO
* @param staffLoginQO
* @param request
* @param request
* @param staffId
* @param staffId
...
@@ -233,6 +234,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -233,6 +234,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
/**
/**
* 刷新token
* 刷新token
*
* @return
* @return
*/
*/
private
RestResponse
<
String
>
getRefreshToken
()
{
private
RestResponse
<
String
>
getRefreshToken
()
{
...
@@ -245,6 +247,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -245,6 +247,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
/**
/**
* 用户登录
* 用户登录
*
* @param staffLoginQO
* @param staffLoginQO
* @param request
* @param request
* @param staffId
* @param staffId
...
...
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