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

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

parent 71fbc8a5
...@@ -31,7 +31,7 @@ public class MaterialCategoryService { ...@@ -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 @@ ...@@ -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 @@ ...@@ -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>
\ 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