| | |
| | | <where>
|
| | | <if test="record != null" >
|
| | | <if test="record.account!=null and record.account!=''">
|
| | | and (m.phone = #{record.account} or m.email = #{record.account} or s.member_id=#{record.account})
|
| | | and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})
|
| | | </if>
|
| | | <if test="record.address!=null and record.address!=''">
|
| | | and s.address=#{record.address}
|
| | |
| | | </where>
|
| | | order by s.create_time desc
|
| | | </select>
|
| | | |
| | | <select id="selectCBByMemberId" resultType="java.lang.String">
|
| | | select IFNULL(sum(amount),'0') from member_coin_charge where member_id = #{memberId} |
| | | </select>
|
| | |
|
| | | </mapper> |