和位号更新后刷新电缆的from/to有关代码

This commit is contained in:
supercjj2023 2025-09-18 09:19:06 +08:00
parent 231e088199
commit 68559cf7f5
2 changed files with 4 additions and 0 deletions

View File

@ -1839,6 +1839,7 @@ namespace Learun.Application.TwoDevelopment.ZZDT_EC
}
//更新电缆属性里的 起始设备 和 终止设备
//不需要 查询时会自动处理
Db.Updateable(existCableConns).AS($"ec_enginedata_rel_{ProjectEntity.ProjectIndex}").ExecuteCommand();
}
}
}

View File

@ -1667,6 +1667,7 @@ Select((a, b, c) => new
model.RelTypeID = RelTypeID;
model.RelEngineData1ID = RelEngineData1ID;
model.RelEngineData2ID = item;
model.OPCPixel = tagPixelId;
engineDataRelAdd.Add(model);
continue;
}
@ -1685,6 +1686,7 @@ Select((a, b, c) => new
model.RelTypeID = RelTypeID;
model.RelEngineData1ID = RelEngineData1ID;
model.RelEngineData2ID = item;
model.OPCPixel = tagPixelId;
engineDataRelAdd.Add(model);
continue;
}
@ -1749,6 +1751,7 @@ Select((a, b, c) => new
model.RelTypeID = RelTypeID;
model.RelEngineData1ID = item;
model.RelEngineData2ID = relEngineData2ID;
model.OPCPixel = tagPixelId;
engineDataRelAdd.Add(model);
continue;