Commit f998e37a authored by 季圣华's avatar 季圣华
Browse files

隐藏商品类型中的'根目录'

parent 71fbc8a5
......@@ -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>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment