临时提交

This commit is contained in:
2025-07-28 11:08:56 +08:00
parent e3c2253f7b
commit 26bd0aa03b
14 changed files with 82 additions and 245 deletions

View File

@@ -62,8 +62,6 @@ public class DeviceAppService : IDeviceAppService
await _repoManager.BeginTranAsync();
var device = _mapper.Map<Device>(dto.Device);
if (device.Protocol == ProtocolType.OpcUA)
device.OpcUaServerUrl = $"opc.tcp://{device.IpAddress}:{device.Port}";
var addDevice = await _repoManager.Devices.AddAsync(device);
if (addDevice == null || addDevice.Id == 0)
{