Commit b6eec0bf authored by suhuiguang's avatar suhuiguang

1.防火阀、应急广播数量统计放到火爆系统

2.消防系统同步日期报错
parent 77452fd7
...@@ -161,8 +161,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -161,8 +161,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
} }
List<DynamicFormInstance> formInstance = vo.getFormInstances(); List<DynamicFormInstance> formInstance = vo.getFormInstances();
// 验证必填项 BUG 2725 by kongfm 2021-09-09 // 验证必填项 BUG 2725 by kongfm 2021-09-09
formInstance.stream().forEach(item -> { formInstance.forEach(item -> {
if (item.getNotNull() == true && StringUtils.isEmpty(item.getFieldValue())) { if (item.getNotNull() && StringUtils.isEmpty(item.getFieldValue())) {
throw new BadRequest(item.getFieldLabel() + "为必填项,请确认"); throw new BadRequest(item.getFieldLabel() + "为必填项,请确认");
} }
}); });
......
...@@ -446,7 +446,7 @@ public class SyncDataServiceImpl implements ISyncDataService { ...@@ -446,7 +446,7 @@ public class SyncDataServiceImpl implements ISyncDataService {
private void sendMessage(SyncDataMessage message) { private void sendMessage(SyncDataMessage message) {
try { try {
emqKeeper.getMqttClient().publish(message.getType().getMqTopic(), message.message2Bytes(), 1, false); emqKeeper.getMqttClient().publish(message.getType().getMqTopic(), message.message2Bytes(), 2, false);
} catch (MqttException e) { } catch (MqttException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -768,7 +768,7 @@ ...@@ -768,7 +768,7 @@
fs.`name` AS aliasname, fs.`name` AS aliasname,
fs.`code`, fs.`code`,
fg.group_name AS systemtype, fg.group_name AS systemtype,
fs.install_date AS installdate, IFNULL(fs.install_date, CURRENT_TIMESTAMP) AS installdate,
IFNULL(p.`name`,'') AS chargeperson, IFNULL(p.`name`,'') AS chargeperson,
IFNULL(fs.charge_person_phone,'') AS chargepersonphone, IFNULL(fs.charge_person_phone,'') AS chargepersonphone,
IFNULL(mi.`name`,'') AS constructionunit, IFNULL(mi.`name`,'') AS constructionunit,
...@@ -777,7 +777,7 @@ ...@@ -777,7 +777,7 @@
fs.maintenance_frequency AS maintenancefrequency, fs.maintenance_frequency AS maintenancefrequency,
fs.maintenance_phone AS maintenancephone, fs.maintenance_phone AS maintenancephone,
fs.rec_date AS createdate, fs.rec_date AS createdate,
NOW( ) AS updatedate, NOW() AS updatedate,
fs.`code` AS mrid, fs.`code` AS mrid,
fs.remark AS description fs.remark AS description
FROM FROM
...@@ -963,7 +963,15 @@ ...@@ -963,7 +963,15 @@
from from
`wl_equipment_specific_index` si `wl_equipment_specific_index` si
where where
si.equipment_index_key = 'FAS_UltravioletLight_FireAlarm') as zwhynum si.equipment_index_key = 'FAS_UltravioletLight_FireAlarm') as zwhynum,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'SCS_FireDamper_FireAlarm'
) AS fhznum
</select> </select>
<select id="fireAlarmSysIndexNumber" resultType="java.util.Map"> <select id="fireAlarmSysIndexNumber" resultType="java.util.Map">
SELECT SELECT
...@@ -1187,14 +1195,6 @@ ...@@ -1187,14 +1195,6 @@
SELECT SELECT
count(1) count(1)
FROM FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'SCS_FireDamper_FireAlarm'
) AS fhznum,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s `wl_equipment_specific_index` s
WHERE WHERE
s.equipment_index_key = 'SCS_FireDamper_Shield' s.equipment_index_key = 'SCS_FireDamper_Shield'
...@@ -1222,14 +1222,6 @@ ...@@ -1222,14 +1222,6 @@
SELECT SELECT
count(1) count(1)
FROM FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'FES_FireBroadcast_Start'
) AS yjgbnum,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` s `wl_equipment_specific_index` s
WHERE WHERE
s.equipment_index_key = 'FES_FireBroadcast_Shield' s.equipment_index_key = 'FES_FireBroadcast_Shield'
...@@ -1252,7 +1244,15 @@ ...@@ -1252,7 +1244,15 @@
WHERE WHERE
s.equipment_index_key = 'FES_FireBroadcast_Start' s.equipment_index_key = 'FES_FireBroadcast_Start'
AND s.`value` = 'true' AND s.`value` = 'true'
) AS yjgbqd ) AS yjgbqd,
(
SELECT
count(1)
FROM
`wl_equipment_specific_index` si
WHERE
si.equipment_index_key = 'FES_FireBroadcast_Start'
) AS yjgbnum
</select> </select>
<select id="fireWaterSysHydrant" resultType="java.util.Map"> <select id="fireWaterSysHydrant" resultType="java.util.Map">
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