From a6430ffc4448d79a95fb28f1ac464f0f35f2a10c Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期三, 02 七月 2025 11:00:03 +0800 Subject: [PATCH] art:点检工单、点检标准数据库设计修改 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentRunningSectionMapper.xml | 13 +++++++++++++ 1 files changed, 13 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 70f146f..fdd58e4 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 @@ -38,6 +38,7 @@ mdc_equipment_running_section WHERE equipment_id = #{ equipmentId } + AND status <![CDATA[ <> ]]> '22' AND (start_long <= #{ endLong } AND end_long >= #{ startLong }) ORDER BY start_time @@ -152,6 +153,7 @@ <where> AND t1.status = '22' AND t1.alarm = #{ vo.alarmCode } + AND (t1.start_time <= #{ endDate } AND t1.end_time >= #{ startDate }) <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=","> @@ -161,5 +163,16 @@ </where> </select> + <select id="getDataList" resultType="java.lang.Integer"> + SELECT + status + FROM + mdc_equipment_running_section + WHERE + equipment_id = #{ equipmentId } + AND start_time > #{date} + AND status IS NOT NULL + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3