From f568916d4fc630a6c26a4de74d6a6853d87ef114 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期五, 09 十月 2026 21:01:52 +0800
Subject: [PATCH] feat: 更新查询顺序以首先显示多个服务和映射器中的最新记录

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

diff --git a/src/main/resources/mapper/sales/ReceiptPaymentMapper.xml b/src/main/resources/mapper/sales/ReceiptPaymentMapper.xml
index 3e3ae6c..9ec8ba9 100644
--- a/src/main/resources/mapper/sales/ReceiptPaymentMapper.xml
+++ b/src/main/resources/mapper/sales/ReceiptPaymentMapper.xml
@@ -29,7 +29,7 @@
                 AND T4.customer_id = #{receiptPaymentDto.customerId}
             </if>
         </where>
-        ORDER BY T1.create_time ASC
+        ORDER BY T1.create_time DESC, T1.id DESC
     </select>
 
     <select id="receiptPaymentInfo" resultType="com.ruoyi.sales.dto.ReceiptPaymentDto">
@@ -455,7 +455,7 @@
         SELECT
             wr.receive_unit,
             wr.goods_name,
-            wr.specification,
+            wr.specification AS specificationModel,
             wr.shippedQuantity,
             SUM(slp.quantity) AS totalQuantity,
             SUM(IFNULL(slp.quantity, 0)) - wr.shippedQuantity AS unshippedQuantity

--
Gitblit v1.9.3