This commit is contained in:
dev01 2023-05-22 11:57:49 +08:00
commit 60d921b454

View File

@ -581,8 +581,8 @@ namespace FrontendWebApi.ApiControllers
LENGTH(SUBSTRING_INDEX(errmsg, '_', -1) -1) --
-1 -- _ ex:D3_B_B1F_CO_
) device_tag
FROM alarmorion_orionalarmrecord a
JOIN alarmorion_orionalarmfacetvalue b on a.id = b.alarm
FROM alarmOrion_OrionAlarmRecord a
JOIN alarmOrion_OrionAlarmFacetValue b on a.id = b.alarm
WHERE a.sourceState = 1 and b.facetName = 9
) a
left join device b on a.device_tag = b.device_number AND b.deleted = 0