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
78cc11fd
Commit
78cc11fd
authored
Mar 11, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:代码优化
parent
84036f5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
DepartmentApiServiceImpl.java
...ge/service/service/out/impl/DepartmentApiServiceImpl.java
+4
-7
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DepartmentApiServiceImpl.java
View file @
78cc11fd
...
@@ -783,23 +783,20 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
...
@@ -783,23 +783,20 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
@Override
@Override
public
List
<
DepartmentDTO
>
listSonByDepartmentIds
(
List
<
String
>
departmentIdList
,
String
wxEnterpriseId
)
{
public
List
<
DepartmentDTO
>
listSonByDepartmentIds
(
List
<
String
>
departmentIdList
,
String
wxEnterpriseId
)
{
List
<
DepartmentDTO
>
list
=
new
ArrayList
<>();
List
<
TabHaobanDepartment
>
list
=
new
ArrayList
<>();
for
(
String
departmentId
:
departmentIdList
)
{
for
(
String
departmentId
:
departmentIdList
)
{
String
chainId
=
""
;
String
chainId
=
""
;
TabHaobanDepartment
department
=
departmentService
.
selectById
(
departmentId
);
TabHaobanDepartment
department
=
departmentService
.
selectById
(
departmentId
);
if
(
department
!=
null
){
if
(
department
!=
null
){
chainId
=
department
.
getChainId
()
+
Constant
.
ID_SEPARATOR
+
departmentId
;
chainId
=
department
.
getChainId
()
+
Constant
.
ID_SEPARATOR
+
departmentId
;
}
}
list
.
add
(
EntityUtil
.
changeEntityByJSON
(
DepartmentDTO
.
class
,
department
)
);
list
.
add
(
department
);
if
(
StringUtils
.
isNotBlank
(
chainId
)){
if
(
StringUtils
.
isNotBlank
(
chainId
)){
List
<
TabHaobanDepartment
>
tabList
=
departmentService
.
listByChainId
(
chainId
,
wxEnterpriseId
);
List
<
TabHaobanDepartment
>
tabList
=
departmentService
.
listByChainId
(
chainId
,
wxEnterpriseId
);
for
(
TabHaobanDepartment
tabHaobanDepartment
:
tabList
)
{
list
.
addAll
(
tabList
);
list
.
add
(
EntityUtil
.
changeEntityByJSON
(
DepartmentDTO
.
class
,
tabHaobanDepartment
));
}
}
}
}
}
return
list
;
return
EntityUtil
.
changeEntityListByJSON
(
DepartmentDTO
.
class
,
list
)
;
}
}
@Override
@Override
...
...
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