fix
Hentua
2023-04-25 c3da057e71c2dfed4bd47d5ffbd4ed2ac6040e41
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -492,14 +492,15 @@
        </if>
    </select>
    <select id="selectOwnCntByInviteIdAndAccountLevel" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select IFNULL(count(1),0) from mall_member x where x.referrer_id=#{inviteId}
    <select id="selectOwnCntByInviteIdAndAccountLevel" resultType="java.lang.Integer">
        select IFNULL(count(1),0)
        from mall_member x where x.referrer_id=#{inviteId}
        and x.level != 'ZERO_LEVEL'
        <if test="accountLevel == 2">
            and x.account_level = 2
        </if>
        <if test="accountLevel == 3">
            and x.accountLevel in (2, 3)
            and x.account_level in (2, 3)
        </if>
    </select>
</mapper>