| | |
| | | a.is_read isRead, |
| | | a.target_id targetId, |
| | | a.member_id memberId, |
| | | a.last_msg_time lastMsgTime |
| | | a.last_msg_time lastMsgTime, |
| | | b.name nickname |
| | | from otc_msg_user_list a |
| | | left join member b on a.target_id = b.id |
| | | <where> |
| | | <if test="record!=null"> |
| | | a.member_id = #{record.memberId} |
| | | or |
| | | a.target_id = #{record.memberId} |
| | | <if test="record.nickname != null and record.nickname != ''"> |
| | | and b.name like concat('%', #{record.nickname},'%') |
| | | </if> |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |
| | |
| | | * |
| | | from otc_msg_user_list a |
| | | <where> |
| | | (a.member_id = #{memberId} and a.target_id = #{targetId}) |
| | | or |
| | | (a.member_id = #{targetId} and a.target_id = #{memberId}) |
| | | a.member_id = #{memberId} and a.target_id = #{targetId} |
| | | </where> |
| | | order by a.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectChatListByToAndFrom" resultType="com.xcong.excoin.modules.otc.entity.OtcMsgUserListEntity"> |
| | | select * from otc_msg_user_list |
| | | where member_id=#{from} and target_id=#{to} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |