[Backend] device中,加上燈控設備更新
This commit is contained in:
parent
05ecdb90ee
commit
4603771a36
@ -777,6 +777,11 @@ namespace Backend.Controllers
|
||||
{
|
||||
device_guid_record = device_guid.ToString();
|
||||
node_priority = 1;
|
||||
Dictionary<string, object> deviceForLight = new Dictionary<string, object>();
|
||||
deviceForLight.Add("@device_coordinate_3d", idfc.device_coordinate_3d);
|
||||
deviceForLight.Add("@forge_dbid", idfc.forge_dbid);
|
||||
deviceForLight.Add("@updated_at", DateTime.Now);
|
||||
await backendRepository.UpdateOneByCustomTable(deviceForLight, "device", $@" device_guid = '{device_guid}'");
|
||||
}
|
||||
|
||||
//燈具
|
||||
@ -798,6 +803,7 @@ namespace Backend.Controllers
|
||||
Dictionary<string, object> device = new Dictionary<string, object>();
|
||||
device.Add("@device_coordinate_3d", idfc.device_coordinate_3d);
|
||||
device.Add("@forge_dbid", idfc.forge_dbid);
|
||||
device.Add("@updated_at", DateTime.Now);
|
||||
await backendRepository.UpdateOneByCustomTable(device, "device", $@" device_number = '{idfc.device_number}'");
|
||||
}
|
||||
}
|
||||
|
@ -243,9 +243,11 @@
|
||||
//launchViewer('dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dGEzaHFzZmZ6cWJub3V4a3BsZGt1a3NldzRzajIxdzUtYmltc19tb2RlbHMvJUUzJTgwJTkwJUU1JThGJUIwJUU1JThDJTk3JUU0JUI4JUFEJUU4JThGJUIxJUU1JUE0JUE3JUU2JUE4JTkzJUUzJTgwJTkxQVJDJUU5JTlCJTk5JUU2JUE4JUExJUU1JUJDJThGK01FUCVFNiU4QiU4NiVFNyVCMyVCQiVFNyVCNSVCMV8yMDIyXzEyXzMxLm53ZA==');
|
||||
|
||||
//01.06 樓層刪除燈具
|
||||
launchViewer('dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6LW1vZGVsX3Rlc3QxMTIxLyVFMyU4MCU5MCVFNSU4RiVCMCVFNSU4QyU5NyVFNCVCOCVBRCVFOCU4RiVCMSV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');//new MEP
|
||||
//launchViewer('dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6dnNjb2RlX2ZvcmdlX3Rlc3QvJUUzJTgwJTkwQVJDJUUzJTgwJTkxJUU1JTg1JUE4JUU2JUEzJTlGXzIwMjJfMTJfMTMubndj');//全棟 ARC
|
||||
|
Loading…
Reference in New Issue
Block a user