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

@ -655,8 +655,9 @@ namespace Repository.BackendRepository.Implement
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
//先全部關閉 //先全部關閉
sb.Append("update device_item set is_show_history=0;"); sb.Append("update device_item set is_show_history=0;");
sb.Append("update device_item set is_show_history= 1" + sb.Append("update device_item set is_show_history = 1 " +
"(select distinct device_system_tag, device_name_tag, device_point_name From import_niagara_item);"); "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()); await conn.ExecuteAsync(sb.ToString());
} }
catch (Exception exception) catch (Exception exception)