<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tamguo.admin.dao.MemberMapper">

	<select id="findByUsername" resultType="MemberEntity">
		SELECT
			m.uid , m.avatar , m.`password` , m.username , m.mobile , m.email
		FROM
			tiku_member m
		where m.username = #{username}
	</select>
	
	<select id="findByMobile" resultType="MemberEntity">
		SELECT
			m.uid , m.avatar , m.`password` , m.username , m.mobile , m.email
		FROM
			tiku_member m
		where m.mobile = #{mobile}
	</select>
	
	<select id="findByUsernameOrEmailOrMobile" resultType="com.tamguo.admin.model.MemberEntity">
		SELECT
			m.uid , m.avatar , m.`password` , m.username , m.mobile , m.email
		FROM
			tiku_member m
		where m.username = #{account} or m.mobile = #{account} or m.email = #{account}
	</select>
	
</mapper>