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
f2c499fa
Commit
f2c499fa
authored
Jun 12, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据userId 伪登录
parent
1180182a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+12
-13
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
f2c499fa
...
@@ -36,10 +36,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -36,10 +36,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@RestController
@RestController
...
@@ -129,21 +126,23 @@ public class InfoController extends WebBaseController{
...
@@ -129,21 +126,23 @@ public class InfoController extends WebBaseController{
staffDTOS
.
addAll
(
userDtos
);
staffDTOS
.
addAll
(
userDtos
);
}
}
if
(
CollectionUtils
.
isNotEmpty
(
staffDTOS
))
{
if
(
CollectionUtils
.
isNotEmpty
(
staffDTOS
))
{
loginStaff
=
staffDTOS
.
get
(
0
);
if
(
staffDTOS
.
size
()
>
1
)
{
if
(
staffDTOS
.
size
()
>
1
)
{
String
dictName
=
loginUserId
.
getDictName
();
String
dictName
=
loginUserId
.
getDictName
();
String
[]
split
=
dictName
.
split
(
"-"
);
String
[]
split
=
dictName
.
split
(
"-"
);
if
(
split
.
length
>
1
)
{
if
(
split
.
length
>
1
)
{
Integer
pos
=
Integer
.
valueOf
(
split
[
1
]);
String
weiCorpId
=
split
[
1
];
if
(
pos
!=
null
&&
staffDTOS
.
size
()
>
pos
)
{
WxEnterpriseDTO
weiWxEnterpriseDTO
=
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
weiCorpId
);
loginStaff
=
staffDTOS
.
get
(
pos
);
if
(
null
!=
weiWxEnterpriseDTO
)
{
}
else
{
loginStaff
=
staffDTOS
.
stream
().
filter
(
staffDTO
->
{
loginStaff
=
staffDTOS
.
get
(
0
);
if
(
weiWxEnterpriseDTO
.
getWxEnterpriseId
().
equals
(
staffDTO
.
getWxEnterpriseId
()))
{
return
true
;
}
else
{
return
false
;
}
}).
findFirst
().
orElse
(
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);
...
...
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