Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
civil
civil-bigdata
Commits
a329bb77
Commit
a329bb77
authored
Aug 20, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改树形结构
parent
c9b7894e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
+1
-5
resource-server/src/main/java/com/zq/resource/service/AreaService.java
+0
-2
resource-server/src/main/java/com/zq/resource/service/DeptService.java
+1
-3
No files found.
resource-server/src/main/java/com/zq/resource/service/AreaService.java
View file @
a329bb77
...
...
@@ -8,7 +8,6 @@ import com.zq.resource.vo.DataTreeVo;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -28,7 +27,6 @@ public class AreaService {
.
value
(
systemArea
.
getId
())
.
parentId
(
systemArea
.
getParentId
())
.
label
(
systemArea
.
getName
())
.
children
(
new
ArrayList
<>())
.
build
()).
collect
(
Collectors
.
toList
());
return
TreeUtils
.
buildTree
(
collect
,
"450000000000"
);
...
...
resource-server/src/main/java/com/zq/resource/service/DeptService.java
View file @
a329bb77
...
...
@@ -10,12 +10,11 @@ import com.zq.common.vo.PageVo;
import
com.zq.resource.dao.OrgDeptDao
;
import
com.zq.resource.entity.OrgDept
;
import
com.zq.resource.utils.TreeUtils
;
import
com.zq.resource.vo.OrgDeptFindVo
;
import
com.zq.resource.vo.DataTreeVo
;
import
com.zq.resource.vo.OrgDeptFindVo
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -99,7 +98,6 @@ public class DeptService {
.
value
(
String
.
valueOf
(
dept
.
getId
()))
.
parentId
(
String
.
valueOf
(
dept
.
getParentId
()))
.
label
(
dept
.
getDeptName
())
.
children
(
new
ArrayList
<>())
.
build
()).
collect
(
Collectors
.
toList
());
return
TreeUtils
.
buildTree
(
collect
,
"0"
);
...
...
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