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
e7666575
Commit
e7666575
authored
Jun 12, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据userId 伪登录
parent
c27b5b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+21
-6
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
e7666575
...
@@ -115,13 +115,28 @@ public class InfoController extends WebBaseController{
...
@@ -115,13 +115,28 @@ public class InfoController extends WebBaseController{
return
resultResponse
(
HaoBanErrCode
.
ERR_600001
);
return
resultResponse
(
HaoBanErrCode
.
ERR_600001
);
}
}
if
(
StringUtils
.
isNotBlank
(
loginStaff
.
getPhoneNumber
()))
{
if
(
StringUtils
.
isNotBlank
(
loginStaff
.
getPhoneNumber
()))
{
DictDTO
login
PhoneNum
=
managerDictService
.
getSMSDict
(
"app_login_phone_num"
,
loginStaff
.
getPhoneNumber
());
DictDTO
login
UserId
=
managerDictService
.
getSMSDict
(
"app_login_phone_num"
,
loginStaff
.
getPhoneNumber
());
logger
.
info
(
"伪登录:{}
"
,
loginStaff
.
getPhoneNumber
(),
JSONObject
.
toJSONString
(
loginPhoneNum
));
logger
.
info
(
"伪登录:{}
,userId:{}"
,
loginStaff
.
getPhoneNumber
(),
JSONObject
.
toJSONString
(
loginUserId
));
if
(
null
!=
login
PhoneNum
)
{
if
(
null
!=
login
UserId
)
{
String
midPhone
=
loginPhoneNum
.
getDictValue
();
String
wxUserId
=
loginUserId
.
getDictValue
();
List
<
StaffDTO
>
staffDTOS
=
staffApiService
.
listBy
PhoneNumber
(
midPhone
);
List
<
StaffDTO
>
staffDTOS
=
staffApiService
.
listBy
WxUserId
(
wxUserId
);
if
(
CollectionUtils
.
isNotEmpty
(
staffDTOS
))
{
if
(
CollectionUtils
.
isNotEmpty
(
staffDTOS
))
{
loginStaff
=
staffDTOS
.
get
(
0
);
if
(
staffDTOS
.
size
()
>
1
)
{
String
dictName
=
loginUserId
.
getDictName
();
String
[]
split
=
dictName
.
split
(
"-"
);
if
(
split
.
length
>
1
)
{
Integer
pos
=
Integer
.
valueOf
(
split
[
1
]);
if
(
pos
!=
null
&&
staffDTOS
.
size
()
>
pos
)
{
loginStaff
=
staffDTOS
.
get
(
pos
);
}
else
{
loginStaff
=
staffDTOS
.
get
(
0
);
}
}
else
{
loginStaff
=
staffDTOS
.
get
(
0
);
}
}
else
{
loginStaff
=
staffDTOS
.
get
(
0
);
}
}
}
// StaffDTO staffDTO = staffApiService.selectByNationcodeAndPhoneNumber(enterprise.getWxEnterpriseId(), "86", midPhone);
// StaffDTO staffDTO = staffApiService.selectByNationcodeAndPhoneNumber(enterprise.getWxEnterpriseId(), "86", midPhone);
// if (null !=staffDTO) {
// if (null !=staffDTO) {
...
...
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