From 7ca0b4b585a109b427b510548c78f3e1dcf5ba37 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 26 九月 2024 15:57:42 +0800
Subject: [PATCH] update
---
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
index d8a0819..c58d194 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml
@@ -58,6 +58,9 @@
WHERE
med.equipment_id = me.id
AND med.dep_id = #{ departId }
+ <if test="key != null and key != '' ">
+ AND me.device_abnormal_status = 1
+ </if>
ORDER BY me.equipment_id
</select>
@@ -71,6 +74,9 @@
WHERE
mpe.equipment_id = me.id
AND mpe.production_id = #{ productionId }
+ <if test="key != null and key != '' ">
+ AND me.device_abnormal_status = 1
+ </if>
ORDER BY me.equipment_id
</select>
@@ -83,9 +89,9 @@
LEFT JOIN mdc_production_equipment mpe ON me.id = mpe.equipment_id
WHERE
mpe.production_id IN
- <foreach collection="allProductionIds" index="index" item="id" open="(" separator="," close=")">
- #{id}
- </foreach>
+ <foreach collection="allProductionIds" index="index" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
</select>
<!--鏌ヨ璁惧鐩戞帶淇℃伅-->
@@ -143,6 +149,7 @@
<foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
#{id}
</foreach>
+ AND me.device_abnormal_status = 1
</where>
ORDER BY sd.depart_order
</select>
@@ -167,6 +174,7 @@
<foreach collection="equipmentIdList" index="index" item="id" open="(" separator="," close=")">
#{id}
</foreach>
+ AND me.device_abnormal_status = 1
</where>
ORDER BY mp.production_order
</select>
--
Gitblit v1.9.3