[後端] 修改table問題, db新增table

This commit is contained in:
dev02 2023-05-22 10:09:01 +08:00
parent c1a05f2207
commit ba6fc268f0

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