xiaoyong931011
2023-04-12 a19e7b6b1088b2860d41c1bbe640c156cdad3dfc
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -12,6 +12,8 @@
               IFNULL(c.commission,0) commission,
               IFNULL(c.star,0) star,
               IFNULL(c.total_score,0) totalScore,
               IFNULL(c.voucher_cnt,0) voucherCnt,
               IFNULL(c.voucher_amount,0) voucherAmount,
               d.description levelName
        FROM mall_member m
        left join mall_member a on m.referrer_id = a.invite_id
@@ -431,4 +433,16 @@
        from mall_member
        where store_master = #{state}
    </select>
    <select id="selectByRole" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select * from mall_member
        <where>
            <if test="type == 3">
                and creater = #{state}
            </if>
            <if test="type == 4">
                and partner = #{state}
            </if>
        </where>
    </select>
</mapper>