Compare commits

..

2 Commits

Author SHA1 Message Date
130ecba50f 調整同步流程 2025-06-09 12:07:40 +08:00
4365516598 調整同步問題 2025-06-09 11:15:10 +08:00

View File

@ -497,9 +497,9 @@ namespace Repository.BackendRepository.Implement
INSERT INTO device (device_guid, deleted, status, priority, is_link, device_area_tag,
device_building_tag, device_system_tag, device_name_tag, full_name, device_floor_tag, device_master,
device_last_name, device_serial_tag, device_model_tag, device_number, device_system_category_layer3, visible, created_at, updated_at)
VALUES (uuid(), 0, 1, 0, 1, @device_area_tag, @device_building_tag, @device_system_tag, @device_name_tag,
select uuid(), 0, 1, 0, 1, @device_area_tag, @device_building_tag, @device_system_tag, @device_name_tag,
@full_name, @device_floor_tag, @device_master_tag, @device_last_name_tag, @device_serial_tag,
@device_model_tag, @niagara_tags, @device_system_tag, 1, now(), now());";
@device_model_tag, @niagara_tags, @device_system_tag, 1, now(), now() WHERE NOT EXISTS (SELECT 1 FROM device WHERE device_number = @niagara_tags); ";
sqlInsertDeviceList.Add(sqlInsertDevice); // 先暫存SQL語法等等一次執行
}