[後端] 開啓同步
This commit is contained in:
parent
3b2fd3d9fe
commit
117b7bae3c
@ -111,15 +111,15 @@ namespace Backend.Controllers
|
||||
{
|
||||
//building.Add(ss.Split("_")[1]);
|
||||
building = data.GroupBy(x => x.tag_name.Split("_")[1]).Select(x => x.Key).ToList();
|
||||
}
|
||||
|
||||
//string LightSwitchLevel = await niagaraDataSynchronizeRepository.getLightSwitchLevel(); //獲取照明開關 是否在 device or device_node
|
||||
//await niagaraDataSynchronizeRepository.InsertNiagaraTagList(ds, building, tag_quantity); // 匯入 MySQL table: import_niagara_tag
|
||||
//await niagaraDataSynchronizeRepository.DeviceComparison(LightSwitchLevel);
|
||||
//await niagaraDataSynchronizeRepository.CheckDiffFullNameAndCover();
|
||||
//await niagaraDataSynchronizeRepository.CheckFullNameEmptyReplaceByDeviceName();
|
||||
//await niagaraDataSynchronizeRepository.InsertBuildingMenu();
|
||||
//await niagaraDataSynchronizeRepository.InsertSubSystemFloor();
|
||||
}
|
||||
|
||||
string LightSwitchLevel = await niagaraDataSynchronizeRepository.getLightSwitchLevel(); //獲取照明開關 是否在 device or device_node
|
||||
await niagaraDataSynchronizeRepository.InsertNiagaraTagList(ds, building, tag_quantity); // 匯入 MySQL table: import_niagara_tag
|
||||
await niagaraDataSynchronizeRepository.DeviceComparison(LightSwitchLevel);
|
||||
await niagaraDataSynchronizeRepository.CheckDiffFullNameAndCover();
|
||||
await niagaraDataSynchronizeRepository.CheckFullNameEmptyReplaceByDeviceName();
|
||||
await niagaraDataSynchronizeRepository.InsertBuildingMenu();
|
||||
await niagaraDataSynchronizeRepository.InsertSubSystemFloor();
|
||||
await this.DeviceDisasterAsync();
|
||||
result = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user