隐藏商品类型中的'根目录'
This commit is contained in:
@@ -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(1l);
|
||||
example.setOrderByClause("id");
|
||||
return materialCategoryMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user