From 3861ca73a58797316065f49c22f48734b4160c6a Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 10 Oct 2025 14:26:15 +0800
Subject: [PATCH] feat(ai): 新增陪练记录相关接口和分页查询功能
---
src/main/resources/mapper/modules/AiTalkItemMapper.xml | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/AiTalkItemMapper.xml b/src/main/resources/mapper/modules/AiTalkItemMapper.xml
index e6ad3c7..f19504a 100644
--- a/src/main/resources/mapper/modules/AiTalkItemMapper.xml
+++ b/src/main/resources/mapper/modules/AiTalkItemMapper.xml
@@ -1,4 +1,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="cc.mrbird.febs.ai.mapper.AiTalkItemMapper">
+
+ <select id="getPageListByQuery" resultType="cc.mrbird.febs.ai.res.talk.ApiTalkItemPageVo">
+ select
+ a.ID as talkItemId,
+ a.talk_id as talkId,
+ a.type as type,
+ a.context as context,
+ a.CREATED_TIME as createdTime
+ from ai_talk_item a
+ <where>
+ and a.member_id = #{record.memberUuid}
+ and a.talk_id = #{record.talkId}
+ <if test="record != null">
+ <if test="record.talkItemId != null">
+ and a.id != #{record.talkItemId}
+ </if>
+ </if>
+ </where>
+ order by a.CREATED_TIME desc
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1