19 lines
532 B
XML
19 lines
532 B
XML
|
|
<?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.newyetai.component.chat.dao.ChatMsgMapper">
|
||
|
|
<select id="listChatMsgDTO" resultType="com.newyetai.component.chat.dto.ChatMsgDTO">
|
||
|
|
select
|
||
|
|
*
|
||
|
|
from xs_chat_msg
|
||
|
|
where
|
||
|
|
deleted = 0
|
||
|
|
<if test="param.id != null">
|
||
|
|
and id = #{param.id}
|
||
|
|
</if>
|
||
|
|
<if test="param.chatId != null">
|
||
|
|
and chat_id = #{param.chatId}
|
||
|
|
</if>
|
||
|
|
</select>
|
||
|
|
</mapper>
|