Commit 6e9603c5 authored by tianyiming's avatar tianyiming

直流中心bug修改

parent c9c23c8a
...@@ -1367,11 +1367,11 @@ ...@@ -1367,11 +1367,11 @@
<select id="fireAlarmLogPage" resultType="java.util.HashMap"> <select id="fireAlarmLogPage" resultType="java.util.HashMap">
SELECT SELECT
`wlesal`.id as alarmLogId, `wlesal`.id as alarmLogId,
equipment_specific_index_name, `wlesal`.equipment_specific_index_name,
equipment_specific_name, `wlesal`.equipment_specific_name,
DATE_FORMAT(`wlesal`.`create_date`,'%m-%d %H:%i:%s') alarm_time, DATE_FORMAT(`wlesal`.`create_date`,'%m-%d %H:%i:%s') alarm_time,
location, wlesal.location,
emergency_level_color, wlesal.emergency_level_color,
IF IF
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`, ( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
wlesal.station_name AS sationName wlesal.station_name AS sationName
......
...@@ -5298,7 +5298,7 @@ ...@@ -5298,7 +5298,7 @@
WHERE WHERE
fs.system_type_code IS NOT NULL fs.system_type_code IS NOT NULL
AND fs.system_type_code = 'fireWaterSys' AND fs.system_type_code = 'fireWaterSys'
AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' OR wesi.`status` = 0 AND wesi.`equipment_specific_index_value` = 'false' ) AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' )
) fireWaterSys, ) fireWaterSys,
( (
SELECT SELECT
...@@ -5310,7 +5310,7 @@ ...@@ -5310,7 +5310,7 @@
WHERE WHERE
fs.system_type_code IS NOT NULL fs.system_type_code IS NOT NULL
AND fs.system_type_code = 'fireCAFSSys' AND fs.system_type_code = 'fireCAFSSys'
AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' OR wesi.`status` = 0 AND wesi.`equipment_specific_index_value` = 'false' ) AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' )
) fireCAFSSys, ) fireCAFSSys,
( (
SELECT SELECT
...@@ -5322,7 +5322,7 @@ ...@@ -5322,7 +5322,7 @@
WHERE WHERE
fs.system_type_code IS NOT NULL fs.system_type_code IS NOT NULL
AND fs.system_type_code = 'fireAlarmSys' AND fs.system_type_code = 'fireAlarmSys'
AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' OR wesi.`status` = 0 AND wesi.`equipment_specific_index_value` = 'false' ) AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' )
) fireAlarmSys, ) fireAlarmSys,
( (
SELECT SELECT
...@@ -5334,7 +5334,7 @@ ...@@ -5334,7 +5334,7 @@
WHERE WHERE
fs.system_type_code IS NOT NULL fs.system_type_code IS NOT NULL
AND fs.system_type_code = 'fireONLSys' AND fs.system_type_code = 'fireONLSys'
AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' OR wesi.`status` = 0 AND wesi.`equipment_specific_index_value` = 'false' ) AND ( wesi.`status` = 1 AND wesi.`equipment_specific_index_value` = 'true' )
) fireONLSys ) fireONLSys
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment