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
0c841bf4
Commit
0c841bf4
authored
Apr 19, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
素材列表
parent
83cf115b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+13
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
0c841bf4
...
...
@@ -202,16 +202,26 @@ public class LoginController extends WebBaseController{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
o
);
String
gicEnterpriseId
=
jsonObject
.
getString
(
"enterpriseId"
);
String
loginPhoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
//
String wxEnterpriseId = jsonObject.getString("wxEnterpriseId");
String
wxEnterpriseId
=
jsonObject
.
getString
(
"wxEnterpriseId"
);
List
<
WxEnterpriseDTO
>
enterpriseDTOList
=
wxEnterpriseRelatedApiService
.
listWxEnterpriseByEid
(
gicEnterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
enterpriseDTOList
))
{
logger
.
info
(
"登录失败,不存在对应企业:{}"
,
o
);
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/gic-error"
,
false
,
false
));
return
model
;
}
WxEnterpriseDTO
detailDTO
=
null
;
if
(!
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
//todo 销售线索页面
}
else
{
detailDTO
=
enterpriseDTOList
.
stream
().
filter
(
dto
->
dto
.
getWxEnterpriseId
().
equals
(
wxEnterpriseId
)).
findFirst
().
orElse
(
null
);
}
if
(
null
==
detailDTO
)
{
logger
.
info
(
"登录失败,不存在对应企业:{}"
,
o
);
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/gic-error"
,
false
,
false
));
return
model
;
}
enterpriseDTOList
.
stream
().
filter
(
dto
->
dto
.
getWxEnterpriseId
().
equals
(
wxEnterpriseId
))
//TODO 销售线索 多个选择
WxEnterpriseDTO
detailDTO
=
enterpriseDTOList
.
get
(
0
);
StaffDTO
staff
=
staffApiService
.
selectByNationcodeAndPhoneNumber
(
detailDTO
.
getWxEnterpriseId
(),
"86"
,
loginPhoneNumber
);
if
(
null
==
staff
)
{
...
...
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