From f6d1aedb785753f1d9343d8749fb5f025818903e Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 16 七月 2026 17:50:58 +0800
Subject: [PATCH] feat: 销售台账添加编号倒序

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

diff --git a/src/main/resources/mapper/sales/SalesQuotationMapper.xml b/src/main/resources/mapper/sales/SalesQuotationMapper.xml
index 3c93850..a407a0b 100644
--- a/src/main/resources/mapper/sales/SalesQuotationMapper.xml
+++ b/src/main/resources/mapper/sales/SalesQuotationMapper.xml
@@ -9,7 +9,7 @@
         FROM sales_quotation t1
         LEFT JOIN approve_process t2 ON t1.quotation_no = t2.approve_reason and t2.approve_type = 6
         WHERE 1=1
-          and t2.approve_deleted = 0
+          and t2.approve_delete = 0
         <if test="salesQuotationDto.quotationNo != null and salesQuotationDto.quotationNo != '' ">
             AND t1.quotation_no LIKE CONCAT('%',#{salesQuotationDto.quotationNo},'%')
         </if>
@@ -19,5 +19,6 @@
         <if test="salesQuotationDto.status != null and salesQuotationDto.status != '' ">
             AND t1.status = #{salesQuotationDto.status}
         </if>
+        order by t1.quotation_no desc
     </select>
 </mapper>

--
Gitblit v1.9.3