Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
feo-jobs
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
feo-jobs
Commits
6a216e2f
Commit
6a216e2f
authored
Jan 19, 2022
by
钱坤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微user信息的IsLeader空指针问题
parent
c3c978ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OrgSyncByWxcpJob.java
...main/java/com/tanpu/feo/feojob/jobs/OrgSyncByWxcpJob.java
+3
-3
No files found.
src/main/java/com/tanpu/feo/feojob/jobs/OrgSyncByWxcpJob.java
View file @
6a216e2f
...
...
@@ -181,7 +181,7 @@ public class OrgSyncByWxcpJob {
List
<
WxCpUser
>
wxCpUserList
=
wxCpDepartDto
.
getWxCpUserList
();
for
(
WxCpUser
wxCpUser
:
wxCpUserList
)
{
// key employee_id + '&' + role_id
String
type
=
wxCpUser
.
getIsLeader
()
==
1
?
RoleTypeEnum
.
TEAM
.
code
:
RoleTypeEnum
.
IFA
.
code
;
String
type
=
wxCpUser
.
getIsLeader
()
!=
null
&&
wxCpUser
.
getIsLeader
()
==
1
?
RoleTypeEnum
.
TEAM
.
code
:
RoleTypeEnum
.
IFA
.
code
;
hashMap
.
put
(
corpId
+
"_"
+
wxCpUser
.
getUserId
()
+
"&"
+
roleMap
.
get
(
type
),
wxCpUser
);
}
}
...
...
@@ -257,7 +257,7 @@ public class OrgSyncByWxcpJob {
continue
;
}
//更新
String
type
=
wxCpUser
.
getIsLeader
()
==
1
?
EmployeeDutyEnum
.
DIRECTOR
.
code
:
EmployeeDutyEnum
.
STAFF
.
code
;
String
type
=
wxCpUser
.
getIsLeader
()
!=
null
&&
wxCpUser
.
getIsLeader
()
==
1
?
EmployeeDutyEnum
.
DIRECTOR
.
code
:
EmployeeDutyEnum
.
STAFF
.
code
;
if
(!
departmentEmployee
.
getType
().
equals
(
type
))
{
departmentEmployee
.
setType
(
type
);
updateList
.
add
(
departmentEmployee
);
...
...
@@ -266,7 +266,7 @@ public class OrgSyncByWxcpJob {
}
for
(
String
s
:
hashMap
.
keySet
())
{
WxCpUser
wxCpUser
=
hashMap
.
get
(
s
);
String
type
=
wxCpUser
.
getIsLeader
()
==
1
?
EmployeeDutyEnum
.
DIRECTOR
.
code
:
EmployeeDutyEnum
.
STAFF
.
code
;
String
type
=
wxCpUser
.
getIsLeader
()
!=
null
&&
wxCpUser
.
getIsLeader
()
==
1
?
EmployeeDutyEnum
.
DIRECTOR
.
code
:
EmployeeDutyEnum
.
STAFF
.
code
;
String
[]
split
=
s
.
split
(
"&"
);
String
departmentId
=
split
[
0
];
String
employeeId
=
split
[
1
];
...
...
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