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
be0ae3a2
Commit
be0ae3a2
authored
Aug 02, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
b55a6e5a
ac674115
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+16
-10
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
be0ae3a2
...
...
@@ -144,16 +144,22 @@ public class InfoController extends WebBaseController{
String
dictName
=
loginUserId
.
getDictName
();
String
[]
split
=
dictName
.
split
(
"-"
);
if
(
split
.
length
>
1
)
{
String
weiCorpId
=
split
[
1
];
WxEnterpriseDTO
weiWxEnterpriseDTO
=
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
weiCorpId
);
if
(
null
!=
weiWxEnterpriseDTO
)
{
loginStaff
=
staffDTOS
.
stream
().
filter
(
staffDTO
->
{
if
(
weiWxEnterpriseDTO
.
getWxEnterpriseId
().
equals
(
staffDTO
.
getWxEnterpriseId
()))
{
return
true
;
}
else
{
return
false
;
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
// String weiCorpId = split[1];
String
weiCorpId
=
split
[
i
];
if
(
enterprise
.
getWxEnterpriseId
().
equals
(
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
weiCorpId
)))
{
WxEnterpriseDTO
weiWxEnterpriseDTO
=
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
weiCorpId
);
System
.
out
.
println
(
"执行"
+
i
);
if
(
null
!=
weiWxEnterpriseDTO
)
{
loginStaff
=
staffDTOS
.
stream
().
filter
(
staffDTO
->
{
if
(
weiWxEnterpriseDTO
.
getWxEnterpriseId
().
equals
(
staffDTO
.
getWxEnterpriseId
()))
{
return
true
;
}
else
{
return
false
;
}
}).
findFirst
().
orElse
(
staffDTOS
.
get
(
0
));
}
}
).
findFirst
().
orElse
(
staffDTOS
.
get
(
0
));
}
}
}
}
...
...
@@ -295,7 +301,7 @@ public class InfoController extends WebBaseController{
private
MemberLoginQo
getUserByCode
(
WxEnterpriseDTO
enterpriseDTO
,
String
code
,
String
enterpriseId
)
{
SecretSettingDTO
secretSetting
=
wxEnterpriseApiService
.
getSecretSetting
(
enterpriseDTO
.
getWxEnterpriseId
(),
SecretTypeEnum
.
MEMBER_WAPP
.
getVal
(),
enterpriseId
);
if
(
null
==
secretSetting
||
StringUtils
.
isBlank
(
secretSetting
.
getSecretVal
()))
{
logger
.
info
(
"MEMBER_WAPPsecret配置没有配置"
);
logger
.
info
(
"MEMBER_WAPPsecret配置没
1ss
有配置"
);
return
null
;
}
String
userDTOJson
=
qywxUserApiService
.
getUserByCode
(
enterpriseDTO
.
getCorpid
(),
secretSetting
.
getSecretVal
(),
code
);
...
...
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