Helius
2021-06-25 d7064002eea6b2bc49e1a4f74f8b6b45d91f0026
gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
@@ -19,12 +19,13 @@
    <select id="queryGoodsCategoryList" resultType="com.xzx.gc.shop.vo.QueryGoodsCategoryListVo">
        SELECT
               *
               a.*,
        a.CREATED_TIME createTime
        FROM
        xzx_score_goods_category a
        WHERE 1 = 1
        <if test="record.name != null and record.name != ''">
            and a.name=#{record.name}
            and a.name like concat('%',#{record.name},'%')
        </if>
        <if test="record.categoryIden != null and record.categoryIden != ''">
            and a.category_iden=#{record.categoryIden}
@@ -37,7 +38,8 @@
    <select id="viewGoodsCategoryOneList" resultType="com.xzx.gc.shop.vo.ViewGoodsCategoryListVo">
        SELECT
        *
        a.*,
        a.CREATED_TIME createTime
        FROM
        xzx_score_goods_category a
        WHERE 1 = 1
@@ -47,6 +49,7 @@
    <select id="viewGoodsCategoryList" resultType="com.xzx.gc.shop.vo.ViewGoodsCategoryListVo">
        SELECT
            a.*,
            a.CREATED_TIME createTime,
               (select name from xzx_score_goods_category where a.parent_id = id) parentName
        FROM
            xzx_score_goods_category a