Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
2ae17a30
Commit
2ae17a30
authored
May 18, 2020
by
邓实川
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工管理添加员工优化,组织管理部门树结构优化
parent
36400bd1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+0
-0
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
+5
-14
No files found.
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
2ae17a30
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
View file @
2ae17a30
package
cn
.
timer
.
api
.
controller
.
zzgl
;
package
cn
.
timer
.
api
.
controller
.
zzgl
;
import
java.lang.reflect.Type
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
javax.transaction.Transactional
;
import
javax.transaction.Transactional
;
...
@@ -27,11 +22,7 @@ import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapp
...
@@ -27,11 +22,7 @@ import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapp
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.copier.CopyOptions
;
import
cn.hutool.core.bean.copier.ValueProvider
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.ListUtil
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.lang.tree.Tree
;
import
cn.hutool.core.lang.tree.Tree
;
import
cn.hutool.core.lang.tree.TreeNode
;
import
cn.hutool.core.lang.tree.TreeNode
;
...
@@ -114,14 +105,14 @@ public class ZzglController {
...
@@ -114,14 +105,14 @@ public class ZzglController {
// treeNodeConfig.setDeep(10);
// treeNodeConfig.setDeep(10);
//转换器
//转换器
List
<
Tree
<
String
>>
treeNodes
=
TreeUtil
.
build
(
nodeList
,
"0"
,
treeNodeConfig
,
List
<
Tree
<
String
>>
treeNodes
=
TreeUtil
.
build
(
zzglBmgwMs
,
"0"
,
treeNodeConfig
,
(
treeNode
,
tree
)
->
{
(
treeNode
,
tree
)
->
{
tree
.
setId
(
treeNode
.
getId
(
));
tree
.
setId
(
Convert
.
toStr
(
treeNode
.
getId
()
));
tree
.
setParentId
(
treeNode
.
getParentId
(
));
tree
.
setParentId
(
Convert
.
toStr
(
treeNode
.
getUpId
()
));
tree
.
setWeight
(
treeNode
.
getWeight
());
//
tree.setWeight(treeNode.getWeight());
tree
.
setName
(
treeNode
.
getName
());
tree
.
setName
(
treeNode
.
getName
());
// 扩展属性 ...
// 扩展属性 ...
// tree.putExtra("extraField", 666
);
tree
.
putExtra
(
"leader"
,
treeNode
.
getLeader
()
);
// tree.putExtra("other", new Object());
// tree.putExtra("other", new Object());
});
});
...
...
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