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/AiProductPointMapper.xml | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/modules/AiProductPointMapper.xml b/src/main/resources/mapper/modules/AiProductPointMapper.xml
index 48bd2cd..8af028c 100644
--- a/src/main/resources/mapper/modules/AiProductPointMapper.xml
+++ b/src/main/resources/mapper/modules/AiProductPointMapper.xml
@@ -19,8 +19,13 @@
<if test="record.companyId != null and record.companyId != ''">
and a.company_id = #{record.companyId}
</if>
+ <if test="record.memberRoleId != null and record.memberRoleId != ''">
+ and a.id in (
+ select product_point_id from ai_member_role_point where role_id = #{record.memberRoleId}
+ )
+ </if>
</if>
</where>
- order by a.CREATED_TIME asc
+ order by a.sort asc
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1