From f5716228c0517d1c4912c0558a3cb15f6f6806d8 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 10 Apr 2026 13:44:04 +0800
Subject: [PATCH] fix(ai): 修复成员角色申请中公司ID缺失问题
---
src/main/resources/mapper/modules/AiMemberTalkMapper.xml | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/AiMemberTalkMapper.xml b/src/main/resources/mapper/modules/AiMemberTalkMapper.xml
index bc08ecd..7dfd73d 100644
--- a/src/main/resources/mapper/modules/AiMemberTalkMapper.xml
+++ b/src/main/resources/mapper/modules/AiMemberTalkMapper.xml
@@ -28,7 +28,26 @@
<where>
and a.member_id = #{record.memberUuid}
and a.company_id = #{record.companyId}
+ and a.product_id = #{record.productId}
and a.state = 1
+ and b.state = 1
+ </where>
+ order by a.CREATED_TIME desc
+ </select>
+
+ <select id="getPageMyTalkListByQuery" resultType="cc.mrbird.febs.ai.res.memberTalk.ApiMemberProductTalkVo">
+ select DISTINCT
+ b.ID as id,
+ b.name as name,
+ b.target as target,
+ 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.company_id = #{record.companyId}
+ and a.state = 1
+ and b.state = 1
</where>
order by a.CREATED_TIME desc
</select>
--
Gitblit v1.9.1