From 918827b48c6cc67cfd93994ef8809ec45d75a30f Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期四, 14 十二月 2023 10:41:10 +0800 Subject: [PATCH] 报警分析二级列表 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 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 9f499d2..70f146f 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 @@ -139,5 +139,27 @@ start_time </select> + <!--鏌ヨ鎶ヨ鍙锋姤璀﹁缁嗕俊鎭�--> + <select id="selectAlarmList" resultType="org.jeecg.modules.mdc.dto.MdcAlarmListDto"> + SELECT + t1.equipment_id, + t2.equipment_name, + t1.start_time, + t1.end_time, + t1.duration + FROM + mdc_equipment_running_section t1 LEFT JOIN mdc_equipment t2 ON t1.equipment_id = t2.equipment_id + <where> + AND t1.status = '22' + AND t1.alarm = #{ vo.alarmCode } + <if test="vo.equipmentIdList != null and vo.equipmentIdList.size() > 0 "> + AND t1.equipment_id IN + <foreach collection="vo.equipmentIdList" item="id" index="index" open="(" close=")" separator=","> + #{ id } + </foreach> + </if> + </where> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3