| | |
| | | <select id="findMemberApplyCoinListInPage" resultType="com.xcong.excoin.modules.member.vo.MemberCoinChargeVo">
|
| | | select * from member_coin_charge s left join member m on m.id = s.member_id
|
| | | <where>
|
| | | <if test="record != null" >
|
| | | <if test="record.account!=null and record.account!=''">
|
| | | and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})
|
| | | s.member_id in (select id from member a where
|
| | | ( FIND_IN_SET(#{record.inviteId}, a.referer_ids) or a.id = #{record.memberId} )
|
| | | <if test="record.isTest != null and record.isTest != '' ">
|
| | | and a.account_type = #{record.isTest}
|
| | | </if>
|
| | | )
|
| | | <if test="record != null" >
|
| | | <if test="record.address!=null and record.address!=''">
|
| | | and s.address=#{record.address}
|
| | | </if>
|
| | | <if test="record.isTest!=null and record.isTest!=''">
|
| | | and m.account_type= #{record.isTest}
|
| | | </if>
|
| | | </if>
|
| | | </where>
|