From a79d1641ab162cf1e96d3af666d1e77abde68c1b Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期一, 09 六月 2025 16:58:18 +0800
Subject: [PATCH] 批量导出设备利用率

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

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml
index c12f8ec..928009c 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/DailyMaintenanceOrderMapper.xml
@@ -127,6 +127,21 @@
         <if test="params.finishEndTime != null">
             and t1.actual_end_time &lt;= #{params.finishEndTime}
         </if>
+        <if test="params.workCenterIds != null">
+            and t3.work_center_id in
+            <foreach collection="params.workCenterIds" open="(" separator="," close=")" item="workCenterId">
+                #{workCenterId}
+            </foreach>
+        </if>
+        <if test="params.equipmentId != null">
+            and t1.equipment_id = #{params.equipmentId}
+        </if>
+        <if test="params.statusEnums != null">
+            and t1.status not in
+            <foreach collection="params.statusEnums" open="(" separator="," close=")" item="statusEnum">
+                #{statusEnum}
+            </foreach>
+        </if>
         ORDER BY t1.create_time desc
     </select>
 
@@ -220,6 +235,21 @@
         <if test="params.finishEndTime != null">
             and t1.actual_end_time &lt;= #{params.finishEndTime}
         </if>
+        <if test="params.workCenterIds != null">
+            and t3.work_center_id in
+            <foreach collection="params.workCenterIds" open="(" separator="," close=")" item="workCenterId">
+                #{workCenterId}
+            </foreach>
+        </if>
+        <if test="params.equipmentId != null">
+            and t1.equipment_id = #{params.equipmentId}
+        </if>
+        <if test="params.statusEnums != null">
+            and t1.status not in
+            <foreach collection="params.statusEnums" open="(" separator="," close=")" item="statusEnum">
+                #{statusEnum}
+            </foreach>
+        </if>
         ORDER BY t1.create_time desc
     </select>
 

--
Gitblit v1.9.3