From db1a8cd3c7d8423f39bb2bf47bc908d78e3db622 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期二, 14 十一月 2023 16:00:00 +0800
Subject: [PATCH] 添加时间筛选条件
---
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml
index 4cfc2d6..003fed6 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml
@@ -86,6 +86,7 @@
</if>
AND (start_time <= #{ vo.endDate } AND end_time >= #{ vo.startDate })
AND status = '22'
+ AND alarm != ''
</where>
ORDER BY
start_time
@@ -100,7 +101,7 @@
<where>
AND status = '22'
AND alarm = #{ alarmCode }
- AND (start_time <= #{ vo.endDate } AND end_time >= #{ vo.startDate })
+ AND (start_time <= #{ endDate } AND end_time >= #{ startDate })
AND equipment_id = #{ equipmentId }
</where>
</select>
@@ -114,7 +115,7 @@
<where>
AND status = '22'
AND alarm = #{ vo.alarmCode }
- AND (start_time <= #{ vo.endDate } AND end_time >= #{ vo.startDate })
+ AND (start_time <= #{ endDate } AND end_time >= #{ startDate })
<if test="vo.equipmentIdList != null and vo.equipmentIdList.size() > 0 ">
AND equipment_id IN
<foreach collection="vo.equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
--
Gitblit v1.9.3