fix problem of use result

This commit is contained in:
dev02 2022-12-31 17:03:17 +08:00
parent 125696a5d3
commit 811a1fd465

View File

@ -259,7 +259,8 @@ namespace Repository.BackendRepository.Implement
data.niagara_tags + "', '" +
data.device_system_tag + "', now(), now() );");
}
foreach (var data in result)
foreach (var data in result2)
{
sb2.Append($@"INSERT device_kind (device_kind_guid, device_building_tag, device_system_tag, device_name_tag,
device_normal_flashing, device_close_flashing, device_error_flashing, device_error_independent,
@ -267,6 +268,7 @@ namespace Repository.BackendRepository.Implement
VALUES (uuid(), '" + data.device_building_tag + "', '" + data.device_system_tag + "', '" + data.device_name_tag +
"', 0, 0, 1, 0, 'B43E3CA7-96DD-4FC7-B6E6-974ACC3B0878', now());");
}
if (sb.Length > 0)
{
await conn.ExecuteAsync(sb.ToString());