| | |
| | | member m
|
| | | LEFT JOIN member_authentication a ON m.id = a.member_id
|
| | | <where>
|
| | | FIND_IN_SET('22015141', m.referer_ids)
|
| | | ( FIND_IN_SET('22015141', m.referer_ids) or m.id = 10)
|
| | | <if test="record != null" >
|
| | | <if test="record.startTime!=null">
|
| | | and m.create_time >=#{record.startTime}
|
| | | </if>
|
| | | <if test="record.endTime!=null">
|
| | | and #{record.endTime} >= m.create_time
|
| | | </if>
|
| | | <if test="record.account!=null and record.account!=''">
|
| | | and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{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 test="record.isTest!=null and record.isTest!=''">
|
| | | and m.account_type= #{record.isTest}
|
| | | </if>
|
| | | <if test="record.certifyStatus != null and record.certifyStatus!=''">
|
| | | and m.certify_status = #{record.certifyStatus}
|