Helius
2021-09-25 d74032da9b0a6a893a8a03e3fa64d2f0ae2a9f2b
src/main/resources/mapper/modules/MallGoodsCategoryMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="cc.mrbird.febs.mall.mapper.MallGoodsCategoryMapper">
    <select id="selectCategoryListInPage" resultType="cc.mrbird.febs.mall.entity.MallGoodsCategory">
        SELECT m.name,b.name parentName,m.is_comand isComand
        SELECT m.id,m.name,b.name parentName,m.is_recommend isComand
                FROM mall_goods_category m
                left join mall_goods_category b on m.parent_id = b.id
        <where>
@@ -57,4 +57,9 @@
        select * from mall_goods_category
        where parent_id=0 and is_recommend = 1
    </select>
    <select id="getMallGoodsCategoryInfoById" resultType="cc.mrbird.febs.mall.vo.AdminMallGoodsCategoryVo">
        select * from mall_goods_category
        where id=#{id}
    </select>
</mapper>