Commit af6a9948 authored by KeYong's avatar KeYong

调整脚本运行顺序

parent fc6e94d0
...@@ -2055,18 +2055,22 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -2055,18 +2055,22 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
if (SystemTypeEnum.fireWaterSys.getCode().equals(String.valueOf(x.get("systemTypeCode")))) { if (SystemTypeEnum.fireWaterSys.getCode().equals(String.valueOf(x.get("systemTypeCode")))) {
resultMap.put("name", SystemTypeEnum.fireWaterSys.getDesc()); resultMap.put("name", SystemTypeEnum.fireWaterSys.getDesc());
resultMap.put("code", SystemTypeEnum.fireWaterSys.getCode());
resultMap.put("total", x.get("sysNum")); resultMap.put("total", x.get("sysNum"));
resultMap.put("alarmNum", alarmNumMap.get("waterSysNum")); resultMap.put("alarmNum", alarmNumMap.get("waterSysNum"));
} else if (SystemTypeEnum.fireCAFSSys.getCode().equals(String.valueOf(x.get("systemTypeCode")))) { } else if (SystemTypeEnum.fireCAFSSys.getCode().equals(String.valueOf(x.get("systemTypeCode")))) {
resultMap.put("name", SystemTypeEnum.fireCAFSSys.getDesc()); resultMap.put("name", SystemTypeEnum.fireCAFSSys.getDesc());
resultMap.put("code", SystemTypeEnum.fireCAFSSys.getCode());
resultMap.put("total", x.get("sysNum")); resultMap.put("total", x.get("sysNum"));
resultMap.put("alarmNum", alarmNumMap.get("cafsSysNum")); resultMap.put("alarmNum", alarmNumMap.get("cafsSysNum"));
} else if (SystemTypeEnum.fireAlarmSys.getCode().equals(String.valueOf(x.get("systemTypeCode")))) { } else if (SystemTypeEnum.fireAlarmSys.getCode().equals(String.valueOf(x.get("systemTypeCode")))) {
resultMap.put("name", SystemTypeEnum.fireAlarmSys.getDesc()); resultMap.put("name", SystemTypeEnum.fireAlarmSys.getDesc());
resultMap.put("code", SystemTypeEnum.fireAlarmSys.getCode());
resultMap.put("total", x.get("sysNum")); resultMap.put("total", x.get("sysNum"));
resultMap.put("alarmNum", alarmNumMap.get("fireAlarmSysNum")); resultMap.put("alarmNum", alarmNumMap.get("fireAlarmSysNum"));
} else { } else {
resultMap.put("name", SystemTypeEnum.fireONLSys.getDesc()); resultMap.put("name", SystemTypeEnum.fireONLSys.getDesc());
resultMap.put("code", SystemTypeEnum.fireONLSys.getCode());
resultMap.put("total", x.get("sysNum")); resultMap.put("total", x.get("sysNum"));
resultMap.put("alarmNum", alarmNumMap.get("onlSysNum")); resultMap.put("alarmNum", alarmNumMap.get("onlSysNum"));
} }
......
...@@ -3062,15 +3062,4 @@ ...@@ -3062,15 +3062,4 @@
REPLACE INTO `wl_form_group_column` (`id`, `field_name`, `field_label`, `data_type`, `group_id`, `query_strategy`, `not_null`, `group_code`, `creator_id`, `create_date`) VALUES (133000000323, 'longitude', '经度', 'String', 132828674817, 'eq', b'0', 'r_fireControlRoom', 2581805, '2022-03-01 12:04:47'); REPLACE INTO `wl_form_group_column` (`id`, `field_name`, `field_label`, `data_type`, `group_id`, `query_strategy`, `not_null`, `group_code`, `creator_id`, `create_date`) VALUES (133000000323, 'longitude', '经度', 'String', 132828674817, 'eq', b'0', 'r_fireControlRoom', 2581805, '2022-03-01 12:04:47');
</sql> </sql>
</changeSet> </changeSet>
<changeSet author="keyong" id="1668587039">
<preConditions onFail="MARK_RAN">
<tableExists tableName="wl_equipment_specific_alarm_log" />
</preConditions>
<comment>sync field</comment>
<sql>
UPDATE wl_equipment_specific_alarm_log wesal
SET wesal.biz_org_name = ( SELECT biz_org_name FROM wl_equipment_specific wes WHERE wes.id = wesal.equipment_specific_id ),
wesal.biz_org_code = ( SELECT biz_org_code FROM wl_equipment_specific wes WHERE wes.id = wesal.equipment_specific_id );
</sql>
</changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
...@@ -395,4 +395,15 @@ ...@@ -395,4 +395,15 @@
ALTER TABLE `wl_equipment_specific_alarm_log` ADD COLUMN `biz_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构编码' AFTER `biz_org_name`; ALTER TABLE `wl_equipment_specific_alarm_log` ADD COLUMN `biz_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构编码' AFTER `biz_org_name`;
</sql> </sql>
</changeSet> </changeSet>
<changeSet author="keyong" id="1668587039">
<preConditions onFail="MARK_RAN">
<tableExists tableName="wl_equipment_specific_alarm_log" />
</preConditions>
<comment>sync field</comment>
<sql>
UPDATE wl_equipment_specific_alarm_log wesal
SET wesal.biz_org_name = ( SELECT biz_org_name FROM wl_equipment_specific wes WHERE wes.id = wesal.equipment_specific_id ),
wesal.biz_org_code = ( SELECT biz_org_code FROM wl_equipment_specific wes WHERE wes.id = wesal.equipment_specific_id );
</sql>
</changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
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