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
JSH ERP
Commits
f998e37a
Commit
f998e37a
authored
Dec 22, 2018
by
季圣华
Browse files
隐藏商品类型中的'根目录'
parent
71fbc8a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryService.java
View file @
f998e37a
...
...
@@ -31,7 +31,7 @@ public class MaterialCategoryService {
public
List
<
MaterialCategory
>
getAllList
(
Long
parentId
)
{
MaterialCategoryExample
example
=
new
MaterialCategoryExample
();
example
.
createCriteria
().
andParentidEqualTo
(
parentId
);
example
.
createCriteria
().
andParentidEqualTo
(
parentId
)
.
andIdNotEqualTo
(
1
l
)
;
example
.
setOrderByClause
(
"id"
);
return
materialCategoryMapper
.
selectByExample
(
example
);
}
...
...
src/main/resources/mapper_xml/MaterialCategoryMapperEx.xml
View file @
f998e37a
...
...
@@ -11,6 +11,7 @@
<if
test=
"parentId != null"
>
and parentId = ${parentId}
</if>
and Id !=1
<if
test=
"offset != null and rows != null"
>
limit #{offset},#{rows}
</if>
...
...
@@ -26,5 +27,6 @@
<if
test=
"parentId != null"
>
and parentId = ${parentId}
</if>
and Id !=1
</select>
</mapper>
\ No newline at end of file
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