Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
af011843
Commit
af011843
authored
Jun 29, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认值
parent
220865db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MenuFrom.java
...java/com/yeejoin/amos/boot/biz/common/utils/MenuFrom.java
+1
-1
TreeParser.java
...va/com/yeejoin/amos/boot/biz/common/utils/TreeParser.java
+2
-2
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/MenuFrom.java
View file @
af011843
...
...
@@ -10,7 +10,7 @@ public class MenuFrom {
public
String
label
;
public
String
name
;
public
String
parentId
;
public
Boolean
isLeaf
=
fals
e
;
public
Boolean
isLeaf
=
tru
e
;
public
List
<
MenuFrom
>
children
;
public
String
getKey
()
{
return
key
;
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/TreeParser.java
View file @
af011843
...
...
@@ -186,7 +186,7 @@ public class TreeParser{
for
(
MenuFrom
entity
:
resultList
)
{
List
<
MenuFrom
>
list
=
getSubxin
(
entity
.
getKey
(),
entityList
,
packageURL
,
IDMethodName
,
IDHierarchy
,
NAMEMethodName
,
PARENTIDMethodName
);
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
entity
.
setIsLeaf
(
tru
e
);
entity
.
setIsLeaf
(
fals
e
);
}
entity
.
setChildren
(
list
);
}
...
...
@@ -234,7 +234,7 @@ public class TreeParser{
}
else
{
if
(
topId
!=
null
&&
topId
.
equals
(
parentId
)){
MenuFrom
menu
=
new
MenuFrom
(
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
)),
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
)),
String
.
valueOf
(
IDMethodNameme
.
invoke
(
entity
)),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
String
.
valueOf
(
NAMEMethodNameme
.
invoke
(
entity
)),
parentId
);
menu
.
setIsLeaf
(
tru
e
);
menu
.
setIsLeaf
(
fals
e
);
childList
.
add
(
menu
);
}
}
...
...
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