|  |  |  | 
|---|
|  |  |  | select * from video_member where account=#{account} and password=#{password} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectVideoMemberListInPage" resultType="cc.mrbird.febs.video.entity.VideoMemberEntity"> | 
|---|
|  |  |  | SELECT m.*,a.name referrerName,IFNULL(c.balance,0) balance  FROM mall_member m | 
|---|
|  |  |  | left join mall_member a on m.referrer_id = a.invite_id | 
|---|
|  |  |  | LEFT JOIN mall_member_wallet c on c.member_id = m.id | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <if test="record != null" > | 
|---|
|  |  |  | <if test="record.name!=null and record.name!=''"> | 
|---|
|  |  |  | and m.name like concat('%',  #{record.name},'%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.account!=null and record.account!=''"> | 
|---|
|  |  |  | and ( | 
|---|
|  |  |  | m.phone like concat('%',  #{record.account},'%') | 
|---|
|  |  |  | or m.email like concat('%',  #{record.account},'%') | 
|---|
|  |  |  | or m.bind_phone like concat('%',  #{record.account},'%') | 
|---|
|  |  |  | or m.invite_id like concat('%',  #{record.account},'%') | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.accountStatus!=null"> | 
|---|
|  |  |  | and m.account_status = #{record.accountStatus} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.accountType != null" > | 
|---|
|  |  |  | and m.account_type = #{record.accountType} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | order by m.CREATED_TIME desc | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|