fix:根據niagara更新device_item is_show_history SQL statment 補遺

This commit is contained in:
史萬澤 2023-02-09 14:57:34 +08:00
parent 3f718bb228
commit c96f184847

View File

@ -656,6 +656,7 @@ namespace Repository.BackendRepository.Implement
//先全部關閉
sb.Append("update device_item set is_show_history=0;");
sb.Append("update device_item set is_show_history = 1 " +
"WHERE(device_system_tag, device_name_tag, points) IN " +
"(select distinct device_system_tag, device_name_tag, device_point_name From import_niagara_item);");
await conn.ExecuteAsync(sb.ToString());
}