xiaoyong931011
2021-09-16 40393ae605bb5df6d4ffa136e13fd952bd936b29
src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -42,4 +42,15 @@
            where a.id = #{id}
    </select>
    <select id="selectInfoByAccount" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select * from mall_member where phone=#{account} or email=#{account}
    </select>
    <select id="selectInfoByInviteId" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select * from mall_member where invite_id=#{inviteId}
    </select>
    <select id="selectInfoByAccountAndPwd" resultType="cc.mrbird.febs.mall.entity.MallMember">
        select * from mall_member where (phone=#{account} or email=#{account}) and password=#{password}
    </select>
</mapper>