From 5677ab158fb78d1267c16bbbf29eb690e0b4039f Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期三, 13 十二月 2023 16:53:39 +0800 Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/mdc_430 into develop --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 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 58c6950..9f499d2 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> @@ -124,5 +125,19 @@ </where> </select> + <!--鏌ヨ鏃堕棿娈靛唴杩愯鏁版嵁--> + <select id="selectRunningData" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentRunningSection"> + SELECT + * + FROM + mdc_equipment_running_section + WHERE + equipment_id = #{ equipmentId } + AND status = '3' + AND (start_time <= #{ endDate } AND end_time >= #{ startDate }) + ORDER BY + start_time + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3