隐藏商品类型中的'根目录'
This commit is contained in:
@@ -31,7 +31,7 @@ public class MaterialCategoryService {
|
|||||||
|
|
||||||
public List<MaterialCategory> getAllList(Long parentId) {
|
public List<MaterialCategory> getAllList(Long parentId) {
|
||||||
MaterialCategoryExample example = new MaterialCategoryExample();
|
MaterialCategoryExample example = new MaterialCategoryExample();
|
||||||
example.createCriteria().andParentidEqualTo(parentId);
|
example.createCriteria().andParentidEqualTo(parentId).andIdNotEqualTo(1l);
|
||||||
example.setOrderByClause("id");
|
example.setOrderByClause("id");
|
||||||
return materialCategoryMapper.selectByExample(example);
|
return materialCategoryMapper.selectByExample(example);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<if test="parentId != null">
|
<if test="parentId != null">
|
||||||
and parentId = ${parentId}
|
and parentId = ${parentId}
|
||||||
</if>
|
</if>
|
||||||
|
and Id !=1
|
||||||
<if test="offset != null and rows != null">
|
<if test="offset != null and rows != null">
|
||||||
limit #{offset},#{rows}
|
limit #{offset},#{rows}
|
||||||
</if>
|
</if>
|
||||||
@@ -26,5 +27,6 @@
|
|||||||
<if test="parentId != null">
|
<if test="parentId != null">
|
||||||
and parentId = ${parentId}
|
and parentId = ${parentId}
|
||||||
</if>
|
</if>
|
||||||
|
and Id !=1
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user