From 6a4df2a4101533fc3e6805eaccf2dd4c31550095 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 24 Oct 2025 17:11:10 +0800
Subject: [PATCH] fix(ai):修正产品依赖查询条件 - 将查询条件从大于等于改为小于等于 - 确保正确筛选出所需分数以下的产品依赖项
---
src/main/resources/mapper/modules/AiMemberAnswerMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/modules/AiMemberAnswerMapper.xml b/src/main/resources/mapper/modules/AiMemberAnswerMapper.xml
index 22d1d20..5e1eb1c 100644
--- a/src/main/resources/mapper/modules/AiMemberAnswerMapper.xml
+++ b/src/main/resources/mapper/modules/AiMemberAnswerMapper.xml
@@ -30,13 +30,16 @@
<select id="getAnswerPage" resultType="cc.mrbird.febs.ai.res.member.ApiMemberAnswerPageVo">
select
a.id as id,
+ a.score as score,
+ a.CREATED_TIME as createdTime,
b.name as name,
b.target as target
from ai_member_answer a
left join ai_product b on a.product_id = b.id and b.state = 1
where a.member_id = #{record.memberUuid}
and a.state = 1
- group by a.product_id
+ and a.product_id = #{record.productId}
+ and a.company_id = #{record.companyId}
order by a.CREATED_TIME desc
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1