From f818fa5eca223270f0656e0455c338ec1f2fac88 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 09 六月 2026 10:04:49 +0800
Subject: [PATCH] ``` refactor(knowledge-base): 重构RAG向量检索功能的文件关联和异步处理

---
 src/main/resources/mapper/sales/SalesQuotationMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/sales/SalesQuotationMapper.xml b/src/main/resources/mapper/sales/SalesQuotationMapper.xml
index 8036e2f..b09c7d3 100644
--- a/src/main/resources/mapper/sales/SalesQuotationMapper.xml
+++ b/src/main/resources/mapper/sales/SalesQuotationMapper.xml
@@ -16,6 +16,10 @@
             <if test="salesQuotationDto.status != null and salesQuotationDto.status != '' ">
                 AND t1.status = #{salesQuotationDto.status}
             </if>
+            <if test="salesQuotationDto.id != null">
+                AND t1.id = #{salesQuotationDto.id}
+            </if>
         </where>
+        order by t1.id desc
     </select>
 </mapper>

--
Gitblit v1.9.3