From e5fca69b8448ef18baf99eb5b352210995a6aa78 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期一, 12 一月 2026 13:59:05 +0800
Subject: [PATCH] yys 成品入库导出图片

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

diff --git a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
index eeef35b..eac12f4 100644
--- a/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
+++ b/src/main/resources/mapper/procurementrecord/ProcurementRecordMapper.xml
@@ -126,6 +126,7 @@
         t3.purchase_contract_number,
         t2.product_category,
         t1.id,
+        GROUP_CONCAT(t1.id) as ids,
         t1.sales_ledger_product_id,
         t1.create_user,
         t2.specification_model,
@@ -209,7 +210,7 @@
                   left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id and t2.type = 2
                   left join purchase_ledger t3 on t3.id = t2.sales_ledger_id
         where t1.type = 1
-        group by t3.supplier_name,t2.product_category,t2.specification_model
+        group by t2.product_category,t2.specification_model
     </select>
     <select id="listCopyOne" resultType="com.ruoyi.procurementrecord.dto.ProcurementPageDtoCopy">
         select
@@ -238,7 +239,7 @@
                   left join sales_ledger_product t2 on t2.id = t1.sales_ledger_product_id and t2.type = 1
                   left join sales_ledger t3 on t3.id = t2.sales_ledger_id
         where t1.type = 2
-        group by t3.customer_name,t2.product_category,t2.specification_model
+        group by t2.product_category,t2.specification_model
     </select>
     <select id="listPageByProduction" resultType="com.ruoyi.procurementrecord.dto.ProcurementPageDto">
         select
@@ -288,6 +289,7 @@
         t3.customer_name,
         t2.product_category,
         t1.id,
+        group_concat(t1.id) as ids,
         t1.sales_ledger_product_id,
         t1.create_user,
         t2.specification_model,

--
Gitblit v1.9.3