| | |
| | | <mapper namespace="cc.mrbird.febs.mall.mapper.MallGoodsCategoryMapper"> |
| | | |
| | | <select id="selectCategoryListInPage" resultType="cc.mrbird.febs.mall.entity.MallGoodsCategory"> |
| | | SELECT m.name,b.name parentName |
| | | SELECT m.name,b.name parentName,m.is_comand isComand |
| | | FROM mall_goods_category m |
| | | left join mall_goods_category b on m.parent_id = b.id |
| | | <where> |
| | |
| | | </select> |
| | | |
| | | <select id="getCategorys" resultType="cc.mrbird.febs.mall.entity.MallGoodsCategory"> |
| | | SELECT * FROM mall_goods_category m where m.parent_id is null |
| | | SELECT * FROM mall_goods_category m where m.parent_id = 0 |
| | | </select> |
| | | |
| | | </mapper> |