Commit 5bfcfc11 authored by 张森's avatar 张森

自动化需求开发 bug

parent 3cf5fb39
...@@ -2832,10 +2832,10 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -2832,10 +2832,10 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
if (!ObjectUtils.isEmpty(equipmentIndexKey)) { if (!ObjectUtils.isEmpty(equipmentIndexKey)) {
if (equipmentIndexKey.equals("FHS_PressurePump_Start")) { if (equipmentIndexKey.equals("FHS_PressurePump_Start")) {
item.put("indexValueName", "启动"); item.put("indexValueName", "启动");
} } else
if (equipmentIndexKey.equals("FHS_PressurePump_Stop")) { if (equipmentIndexKey.equals("FHS_PressurePump_Stop")) {
item.put("indexValueName", "停止"); item.put("indexValueName", "停止");
} } else
if (equipmentIndexKey.equals("FHS_PressurePump_ManualAutomaticSignal") && if (equipmentIndexKey.equals("FHS_PressurePump_ManualAutomaticSignal") &&
item.getOrDefault("indexValue", "").toString().equals("true")) { item.getOrDefault("indexValue", "").toString().equals("true")) {
item.put("indexValueName", "手动状态"); item.put("indexValueName", "手动状态");
...@@ -2855,9 +2855,15 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -2855,9 +2855,15 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
if (!ObjectUtils.isEmpty(equipmentIndexKey)) { if (!ObjectUtils.isEmpty(equipmentIndexKey)) {
if (equipmentIndexKey.equals("FHS_FirePump_Start")) { if (equipmentIndexKey.equals("FHS_FirePump_Start")) {
item.put("indexValueName", "启动"); item.put("indexValueName", "启动");
} } else
if (equipmentIndexKey.equals("FHS_FirePump_Stop")) { if (equipmentIndexKey.equals("FHS_FirePump_Stop")) {
item.put("indexValueName", "停止"); item.put("indexValueName", "停止");
} else
if (equipmentIndexKey.equals("FHS_FirePump_ManualAutomaticSignal") &&
item.getOrDefault("indexValue", "").toString().equals("true")) {
item.put("indexValueName", "手动状态");
} else {
item.put("indexValueName", "自动状态");
} }
} }
}); });
......
...@@ -3044,7 +3044,8 @@ ...@@ -3044,7 +3044,8 @@
COALESCE ( a.warehouse_structure_id, '' ) AS buildId, COALESCE ( a.warehouse_structure_id, '' ) AS buildId,
COALESCE ( b.name, '' ) AS buildName, COALESCE ( b.name, '' ) AS buildName,
esi.equipment_index_key as equipmentIndexKey, esi.equipment_index_key as equipmentIndexKey,
esi.`value` as indexValue esi.`value` as indexValue,
'92010800' as equipmentCode
FROM FROM
wl_equipment_specific a wl_equipment_specific a
LEFT JOIN wl_warehouse_structure b ON a.warehouse_structure_id = b.id LEFT JOIN wl_warehouse_structure b ON a.warehouse_structure_id = b.id
...@@ -3081,7 +3082,8 @@ ...@@ -3081,7 +3082,8 @@
COALESCE ( a.warehouse_structure_id, '' ) AS buildId, COALESCE ( a.warehouse_structure_id, '' ) AS buildId,
COALESCE ( b.NAME, '' ) AS buildName, COALESCE ( b.NAME, '' ) AS buildName,
ifnull( esi.equipment_index_key, 'FHS_FirePump_Stop' ) AS equipmentIndexKey, ifnull( esi.equipment_index_key, 'FHS_FirePump_Stop' ) AS equipmentIndexKey,
'true' AS indexValue 'true' AS indexValue,
'920106007' as equipmentCode
FROM FROM
wl_equipment_specific a wl_equipment_specific a
LEFT JOIN wl_warehouse_structure b ON a.warehouse_structure_id = b.id LEFT JOIN wl_warehouse_structure b ON a.warehouse_structure_id = b.id
...@@ -3100,6 +3102,7 @@ ...@@ -3100,6 +3102,7 @@
wl_equipment_specific_index wl_equipment_specific_index
WHERE WHERE
( equipment_index_key IN ( 'FHS_FirePump_Start', 'FHS_FirePump_Stop' ) AND `value` = 'true' ) ( equipment_index_key IN ( 'FHS_FirePump_Start', 'FHS_FirePump_Stop' ) AND `value` = 'true' )
OR ( equipment_index_key = 'FHS_FirePump_ManualAutomaticSignal' AND `value` IS NOT NULL AND `value` != '' )
) esi_with_rn ) esi_with_rn
WHERE WHERE
esi_with_rn.rn = 1 esi_with_rn.rn = 1
...@@ -3117,7 +3120,8 @@ ...@@ -3117,7 +3120,8 @@
COALESCE ( a.warehouse_structure_id, '' ) AS buildId, COALESCE ( a.warehouse_structure_id, '' ) AS buildId,
COALESCE ( b.name, '' ) AS buildName, COALESCE ( b.name, '' ) AS buildName,
esi.equipment_index_key as equipmentIndexKey, esi.equipment_index_key as equipmentIndexKey,
esi.`value` as indexValue esi.`value` as indexValue,
'92010500' as equipmentCode
FROM FROM
wl_equipment_specific a wl_equipment_specific a
LEFT JOIN wl_warehouse_structure b ON a.warehouse_structure_id = b.id LEFT JOIN wl_warehouse_structure b ON a.warehouse_structure_id = b.id
...@@ -3135,7 +3139,7 @@ ...@@ -3135,7 +3139,7 @@
FROM FROM
wl_equipment_specific_index wl_equipment_specific_index
WHERE WHERE
equipment_index_key = 'FHS_PressurePump_ManualAutomaticSignal' AND `value` IS NOT NULL AND `value` != '' equipment_index_key = 'FHS_ControlCabinetManually' AND `value` IS NOT NULL AND `value` != ''
) esi_with_rn ) esi_with_rn
WHERE WHERE
esi_with_rn.rn = 1 esi_with_rn.rn = 1
......
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