From 1946aa0712f623dd5e0221ef2481bc3d8d224e74 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 08 一月 2026 17:21:32 +0800
Subject: [PATCH] 1.销售订单到质检的关联删除 2.报工撤回的数量更新

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

diff --git a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
index bc6c38a..9368d70 100644
--- a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
+++ b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
@@ -20,6 +20,7 @@
         sum(pr.tickets_amount)as receipt_payment_amount,
         pl.contract_amount-sum(pr.tickets_amount) AS unReceipt_payment_amount,
         pl.entry_date,
+        pl.execution_date,
         pl.recorder_name,
         pl.payment_method
         from purchase_ledger pl
@@ -49,7 +50,7 @@
         pl.project_name,pl.entry_date,
         pl.recorder_name,
         pl.contract_amount
-
+        order by pl.entry_date desc
     </select>
     <select id="getPaymentRegistrationDtoById" resultType="com.ruoyi.purchase.dto.PaymentRegistrationDto">
         SELECT

--
Gitblit v1.9.3