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
QianQiXiang
haoban-manage3.0
Commits
0188aa4a
Commit
0188aa4a
authored
Apr 03, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
haoban3.0/haoban-manage3.0!24
parents
2d1dc2ca
3614db44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+23
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
0188aa4a
...
...
@@ -668,8 +668,8 @@ public class StaffApiServiceImpl implements StaffApiService {
}
String
departmentId
=
department
.
getDepartmentId
();
String
wxEnterpriseId
=
department
.
getWxEnterpriseId
();
StaffDTO
staff
=
this
.
selectByNationcodeAndPhoneNumber
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
//
StaffDTO staff = this.selectByNationcodeAndPhoneNumber(wxEnterpriseId, nationcode, phoneNumber);
StaffDTO
staff
=
geCcheckAndInitUser
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
staff
==
null
){
if
(
status
!=
1
){
return
;
...
...
@@ -766,6 +766,27 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
private
StaffDTO
geCcheckAndInitUser
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
)
{
logger
.
info
(
"校验获取信息:{}"
,
phoneNumber
);
StaffDTO
staff
=
this
.
selectByNationcodeAndPhoneNumber
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
null
!=
staff
)
{
return
staff
;
}
WxEnterpriseDTO
enterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
TabHaobanWxApplication
application
=
wxApplicationService
.
selectByWxEnterpriseIdAndApplicationType
(
wxEnterpriseId
,
1
);
if
(
null
==
enterpriseDTO
||
application
==
null
)
{
return
null
;
}
String
userId
=
qywxUserApiService
.
getWxUserIdByPhonenumber
(
enterpriseDTO
.
getCorpid
(),
application
.
getSiteId
(),
phoneNumber
);
logger
.
info
(
"获取userId:{},{}"
,
phoneNumber
,
userId
);
if
(
userId
==
null
)
{
return
null
;
}
wxGetAdd
(
userId
,
wxEnterpriseId
);
return
this
.
selectByUserIdAndEnterpriseId
(
userId
,
wxEnterpriseId
);
}
@Override
public
StaffDepartmentRelatedDTO
getDepartmentIdAndCode
(
String
departmentId
,
String
code
)
{
return
EntityUtil
.
changeEntityByJSON
(
StaffDepartmentRelatedDTO
.
class
,
staffDepartmentRelatedMapper
.
getDepartmentIdAndCode
(
departmentId
,
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