xiaoyong931011
2023-03-17 9adbcd5de4e0eb0e2ce145ef62d36ee975c5a2c5
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -405,4 +405,24 @@
        select id from mall_member
        where level = #{level}
    </select>
    <select id="selectAllChildAgentListByInviteIdAndStoreMaster" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select *
        from mall_member
        where
              find_in_set(#{inviteId}, referrer_ids)
            and store_master = #{state}
    </select>
    <select id="selectMemberByDirector" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select *
        from mall_member
        where director = #{state}
    </select>
    <select id="selectMemberByStoreMaster" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select *
        from mall_member
        where store_master = #{state}
    </select>
</mapper>