From b240ae8d2dbbfa0e5988f734b4f51dabf2fc783c Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 25 五月 2026 16:39:45 +0800
Subject: [PATCH] refactor(approve): 重构审批业务状态同步逻辑

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

diff --git a/src/main/resources/mapper/sales/SalesQuotationMapper.xml b/src/main/resources/mapper/sales/SalesQuotationMapper.xml
index a39cd45..8036e2f 100644
--- a/src/main/resources/mapper/sales/SalesQuotationMapper.xml
+++ b/src/main/resources/mapper/sales/SalesQuotationMapper.xml
@@ -4,16 +4,18 @@
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.sales.mapper.SalesQuotationMapper">
     <select id="listPage" resultType="com.ruoyi.sales.dto.SalesQuotationDto">
-        SELECT * FROM sales_quotation
-        WHERE 1=1
-        <if test="salesQuotationDto.quotationNo != null and salesQuotationDto.quotationNo != '' ">
-            AND quotation_no LIKE CONCAT('%',#{salesQuotationDto.quotationNo},'%')
-        </if>
-        <if test="salesQuotationDto.customer != null and salesQuotationDto.customer != '' ">
-            AND customer = #{salesQuotationDto.customer}
-        </if>
-        <if test="salesQuotationDto.status != null and salesQuotationDto.status != '' ">
-            AND status = #{salesQuotationDto.status}
-        </if>
+        SELECT t1.*
+        FROM sales_quotation t1
+        <where>
+            <if test="salesQuotationDto.quotationNo != null and salesQuotationDto.quotationNo != '' ">
+                AND t1.quotation_no LIKE CONCAT('%',#{salesQuotationDto.quotationNo},'%')
+            </if>
+            <if test="salesQuotationDto.customer != null and salesQuotationDto.customer != '' ">
+                AND t1.customer = #{salesQuotationDto.customer}
+            </if>
+            <if test="salesQuotationDto.status != null and salesQuotationDto.status != '' ">
+                AND t1.status = #{salesQuotationDto.status}
+            </if>
+        </where>
     </select>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3