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
1
Merge Requests
1
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
5c52b8ab
Commit
5c52b8ab
authored
Apr 03, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gic同步判断手机是否存在
parent
dd9fcfdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+22
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
5c52b8ab
...
...
@@ -668,9 +668,9 @@ public class StaffApiServiceImpl implements StaffApiService {
}
String
departmentId
=
department
.
getDepartmentId
();
String
wxEnterpriseId
=
department
.
getWxEnterpriseId
();
StaffDTO
staff
=
this
.
selectByNationcodeAndPhoneNumber
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
staff
==
null
){
//
StaffDTO staff = this.selectByNationcodeAndPhoneNumber(wxEnterpriseId, nationcode, phoneNumber);
StaffDTO
staff
=
geCcheckAndInitUser
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
staff
==
null
){
if
(
status
!=
1
){
return
;
}
else
{
...
...
@@ -766,6 +766,25 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
private
StaffDTO
geCcheckAndInitUser
(
String
wxEnterpriseId
,
String
nationcode
,
String
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
);
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