Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
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
李丛阳
education
Commits
ec319629
Commit
ec319629
authored
Oct 16, 2019
by
王淑君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
eda3f74e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+19
-16
No files found.
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
ec319629
...
...
@@ -65,21 +65,23 @@ public class SysUserServiceImpl implements SysUserService {
mtUserGetsReqDTO
.
setIds
(
list
);
List
<
MTUserInfoRspDTO
>
depart
=
mtCotactApiRequestClient
.
userGets
(
mtUserGetsReqDTO
);
StringBuffer
sb
=
new
StringBuffer
();
String
position
=
""
;
for
(
SysUser
sysUser
:
users
)
{
for
(
MTUserInfoRspDTO
mtUserInfoRspDTO
:
depart
)
{
if
(
sysUser
.
getBusinessId
().
equals
(
mtUserInfoRspDTO
.
getId
()))
{
for
(
MTUserInfoRspDTO
.
DeptsBean
deptsBean
:
mtUserInfoRspDTO
.
getDepts
())
{
for
(
MTUserInfoRspDTO
.
DeptsBean
.
PathBean
pathBean
:
deptsBean
.
getPath
())
{
if
(
null
!=
pathBean
)
sb
.
append
(
pathBean
.
getName
()
+
"-"
);
if
(
depart
!=
null
)
{
StringBuffer
sb
=
new
StringBuffer
();
String
position
=
""
;
for
(
SysUser
sysUser
:
users
)
{
for
(
MTUserInfoRspDTO
mtUserInfoRspDTO
:
depart
)
{
if
(
sysUser
.
getBusinessId
().
equals
(
mtUserInfoRspDTO
.
getId
()))
{
for
(
MTUserInfoRspDTO
.
DeptsBean
deptsBean
:
mtUserInfoRspDTO
.
getDepts
())
{
for
(
MTUserInfoRspDTO
.
DeptsBean
.
PathBean
pathBean
:
deptsBean
.
getPath
())
{
if
(
null
!=
pathBean
)
sb
.
append
(
pathBean
.
getName
()
+
"-"
);
}
position
=
deptsBean
.
getPosition
()
==
null
?
""
:
String
.
valueOf
(
deptsBean
.
getPosition
());
}
position
=
deptsBean
.
getPosition
()
==
null
?
""
:
String
.
valueOf
(
deptsBean
.
getPosition
());
sysUser
.
setDepart
(
sb
.
toString
().
substring
(
0
,
sb
.
toString
().
length
()
-
1
));
sb
=
new
StringBuffer
();
sysUser
.
setPosition
(
position
);
}
sysUser
.
setDepart
(
sb
.
toString
().
substring
(
0
,
sb
.
toString
().
length
()
-
1
));
sb
=
new
StringBuffer
();
sysUser
.
setPosition
(
position
);
}
}
}
...
...
@@ -281,14 +283,15 @@ public class SysUserServiceImpl implements SysUserService {
}
String
updateTime
=
df
.
format
(
synchronizationTime
.
getSynchronizationTime
());
List
<
GetAllRspDTO
>
userGetRspDTOList
=
mtCotactApiRequestClient
.
accountGetMyInfoList
(
corpId
,
updateTime
);
if
(
null
==
userGetRspDTOList
)
{
throw
new
ServiceException
(
ResultServiceEnums
.
ZX_FAILED
);
}
//
if (null == userGetRspDTOList) {
//
throw new ServiceException(ResultServiceEnums.ZX_FAILED);
//
}
List
<
SysUser
>
personnelsList
=
new
ArrayList
<>();
int
line
=
0
;
if
(
null
!=
userGetRspDTOList
)
{
for
(
GetAllRspDTO
userInfo
:
userGetRspDTOList
)
{
SysUser
personnels
=
new
SysUser
();
UserUtil
.
setCurrentPersistOperation
(
personnels
);
personnels
.
setCorpId
(
corpId
);
personnels
.
setBusinessId
(
userInfo
.
getId
());
//id
personnels
.
setName
(
userInfo
.
getName
());
//姓名
...
...
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