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
8091d4c3
Commit
8091d4c3
authored
Apr 24, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
abfb6d28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+19
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
8091d4c3
...
...
@@ -3,8 +3,12 @@ package com.gic.haoban.manage.web.controller;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.dict.api.dto.*
;
import
com.gic.dict.api.dto.DictDTO
;
import
com.gic.dict.api.service.ManagerDictService
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StorePhotoDTO
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
...
...
@@ -73,6 +77,9 @@ public class InfoController extends WebBaseController{
private
ClerkMainStoreRelatedApiService
clerkMainStoreRelatedApiService
;
@Autowired
private
StaffDepartmentRelatedApiService
staffDepartmentRelatedApiService
;
@Autowired
private
ManagerDictService
managerDictService
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
InfoController
.
class
);
...
...
@@ -104,6 +111,18 @@ public class InfoController extends WebBaseController{
if
(
loginStaff
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_600001
);
}
if
(
StringUtils
.
isNotBlank
(
loginStaff
.
getPhoneNumber
()))
{
DictDTO
loginPhoneNum
=
managerDictService
.
getSMSDict
(
"app_login_phone_num"
,
loginStaff
.
getPhoneNumber
());
logger
.
info
(
"伪登录:{}"
,
loginStaff
.
getPhoneNumber
(),
JSONObject
.
toJSONString
(
loginPhoneNum
));
if
(
null
!=
loginPhoneNum
)
{
String
midPhone
=
loginPhoneNum
.
getDictValue
();
StaffDTO
staffDTO
=
staffApiService
.
selectByNationcodeAndPhoneNumber
(
enterprise
.
getWxEnterpriseId
(),
"86"
,
midPhone
);
if
(
null
!=
staffDTO
)
{
loginStaff
=
staffDTO
;
}
}
}
String
wxEnterpriseId
=
loginStaff
.
getWxEnterpriseId
();
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
...
...
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