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/AiMemberTalkMapper.xml |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/modules/AiMemberTalkMapper.xml b/src/main/resources/mapper/modules/AiMemberTalkMapper.xml
index 9017110..7a0315c 100644
--- a/src/main/resources/mapper/modules/AiMemberTalkMapper.xml
+++ b/src/main/resources/mapper/modules/AiMemberTalkMapper.xml
@@ -1,4 +1,19 @@
 <?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.AiMemberTalkMapper">
+
+    <select id="getPageByDto" resultType="cc.mrbird.febs.ai.res.memberTalk.ApiMemberTalkListVo">
+        select
+        a.ID as talkId,
+        b.name as productName,
+        a.CREATED_TIME as createdTime
+        from ai_member_talk a
+        left join ai_product b on a.product_id = b.id
+        <where>
+            and a.member_id = #{record.memberUuid}
+            and a.product_id = #{record.productId}
+        </where>
+        order by a.CREATED_TIME desc
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1