Files
senmesh-zc/src/main/java/com/newyetai/component/chat/mapper/ChatMsgMapper.xml

19 lines
532 B
XML
Raw Normal View History

2025-06-11 09:42:13 +08:00
<?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>