Compare commits
2 Commits
f6c1f28693
...
130ecba50f
Author | SHA1 | Date | |
---|---|---|---|
130ecba50f | |||
4365516598 |
@ -497,9 +497,9 @@ namespace Repository.BackendRepository.Implement
|
|||||||
INSERT INTO device (device_guid, deleted, status, priority, is_link, device_area_tag,
|
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_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)
|
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,
|
@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語法,等等一次執行
|
sqlInsertDeviceList.Add(sqlInsertDevice); // 先暫存SQL語法,等等一次執行
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user