fix
Hentua
2023-04-24 c910067dc3a65ed90e93d3352ef2b76955cc8905
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>