1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
| <mapper namespace="com.xcong.excoin.modules.otc.dao.OtcMsgHistoryDao">
|
|
| <select id="getChatBoxMsgList" resultType="com.xcong.excoin.modules.otc.vo.ChatBoxVo">
| select
| a.create_time createTime,
| a.msg msg,
| a.target_id targetId,
| a.msg_type msgType
| from otc_msg_history a
| <where>
| <if test="record!=null">
| (a.member_id = ${record.memberId} and a.target_id = ${record.targetId})
| or
| (a.member_id = ${record.targetId} and a.target_id = ${record.memberId})
| </if>
| </where>
| order by a.create_time desc
| </select>
|
|
| </mapper>
|
|