| | |
| | | left join chat_wallet b on b.user_id = a.user_id and type = 'USDT' |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.phone != null and record.phone != ''"> |
| | | and a.phone like CONCAT('%', CONCAT(#{record.phone}, '%')) |
| | | </if> |
| | | <if test="record.nickName != null and record.nickName != ''"> |
| | | and a.nick_name like CONCAT('%', CONCAT(#{record.nickName}, '%')) |
| | | </if> |
| | |
| | | left join chat_wallet b on b.user_id = a.user_id and type = 'USDT' |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.phone != null and record.phone != ''"> |
| | | and a.phone like CONCAT('%', CONCAT(#{record.phone}, '%')) |
| | | </if> |
| | | <if test="record.nickName != null and record.nickName != ''"> |
| | | and a.nick_name like CONCAT('%', CONCAT(#{record.nickName}, '%')) |
| | | </if> |
| | |
| | | a.type type, |
| | | a.amount amount, |
| | | b.nick_name nickName, |
| | | b.phone phone, |
| | | date_format(a.create_time, '%Y-%m-%d %H:%m:%s') createTime, |
| | | a.ava_amount avaAmount, |
| | | a.state state, |
| | |
| | | inner join chat_user b on b.user_id = a.user_id |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.phone != null and record.phone != ''"> |
| | | and b.phone like CONCAT('%', CONCAT(#{record.phone}, '%')) |
| | | </if> |
| | | <if test="record.nickName != null and record.nickName != ''"> |
| | | and b.nick_name = #{record.nickName} |
| | | </if> |
| | |
| | | select |
| | | date_format(a.created_time, '%Y-%m-%d %H:%m:%s') createdTime, |
| | | b.nick_name nickName, |
| | | b.phone phone, |
| | | a.amount amount, |
| | | a.last_amount lastAmount, |
| | | a.status status, |
| | |
| | | left join chat_user b on b.user_id = a.user_id |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.phone != null and record.phone != ''"> |
| | | and b.phone like CONCAT('%', CONCAT(#{record.phone}, '%')) |
| | | </if> |
| | | <if test="record.nickName != null and record.nickName != ''"> |
| | | and b.nick_name like CONCAT('%', CONCAT(#{record.nickName}, '%')) |
| | | </if> |
| | |
| | | select |
| | | date_format(a.created_time, '%Y-%m-%d %H:%m:%s') createdTime, |
| | | b.nick_name nickName, |
| | | b.phone phone, |
| | | a.id id, |
| | | a.amount amount, |
| | | a.type type, |
| | |
| | | left join chat_user b on b.user_id = a.user_id |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.phone != null and record.phone != ''"> |
| | | and b.phone like CONCAT('%', CONCAT(#{record.phone}, '%')) |
| | | </if> |
| | | <if test="record.nickName != null and record.nickName != ''"> |
| | | and b.nick_name like CONCAT('%', CONCAT(#{record.nickName}, '%')) |
| | | </if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="updatePortraitById"> |
| | | update chat_user |
| | | set |
| | | portrait = #{portrait} |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | |
| | | </mapper> |