Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
6c75df55
Unverified
Commit
6c75df55
authored
Jul 19, 2021
by
yuyu1025
Committed by
GitHub
Jul 19, 2021
Browse files
Update MenuServiceImpl.java (#656)
防止isQuery为空时自动拆箱出现NullPointerException
parent
12a7e033
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/MenuServiceImpl.java
View file @
6c75df55
...
...
@@ -62,7 +62,7 @@ public class MenuServiceImpl implements MenuService {
@Override
public
List
<
MenuDto
>
queryAll
(
MenuQueryCriteria
criteria
,
Boolean
isQuery
)
throws
Exception
{
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"menuSort"
);
if
(
isQuery
){
if
(
Boolean
.
TRUE
.
equals
(
isQuery
)
)
{
criteria
.
setPidIsNull
(
true
);
List
<
Field
>
fields
=
QueryHelp
.
getAllFields
(
criteria
.
getClass
(),
new
ArrayList
<>());
for
(
Field
field
:
fields
)
{
...
...
Write
Preview
Supports
Markdown
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