From fdbfec9872c9954305e328d270ed04f5da2d6b58 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 10 Feb 2026 17:44:34 +0800
Subject: [PATCH] feat(ai): 添加产品点排序功能
---
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