From 388d87d5534a056268777cd37d877075bc79929c Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 15 五月 2025 10:54:28 +0800
Subject: [PATCH] 产量列表

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml
index 864dff2..60b9386 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentDayScheduleMapper.xml
@@ -2,4 +2,25 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="org.jeecg.modules.mdc.mapper.MdcEquipmentDayScheduleMapper">
 
+    <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentDaySchedule">
+        SELECT
+            t4.id id,
+            t4.production_name dept,
+            t1.mds_item_code mdsItemCode,
+            t1.batch_num batchNum,
+            t1.qualified_qty qualified_qty
+        FROM mdc_equipment_day_schedule t1
+                 INNER JOIN mdc_equipment t2
+                            ON t1.equipment_id = t2.equipment_id
+                 INNER JOIN mdc_production_equipment t3
+                            ON t2.id = t3.equipment_id
+                 INNER JOIN mdc_production t4
+                            ON t3.production_id = t4.id
+        WHERE TO_CHAR(t1.dispatch_date, 'YYYY-MM') = TO_CHAR(SYSDATE, 'YYYY-MM')
+          AND t4.parent_id = #{vo.productionId}
+          <if test="vo.proChildId != null and vo.proChildId != ''">
+              AND t4.id = #{vo.proChildId}
+          </if>
+        ORDER BY t1.dispatch_date DESC
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3