fix 基础字段处理

This commit is contained in:
2024-01-10 17:37:54 +08:00
parent 54835e6cae
commit 46b0965fd9

View File

@@ -39,6 +39,10 @@ public class DeviceConnectService : IDeviceConnectService
BusinessPlaceCode = businessPlace?.Code,
BusinessPlaceCustomCode = businessPlace?.CustomCode,
TenantId = device.TenantId,
CreatedBy = 1,
CreateTime = DateTime.Now,
ModifiedBy = 1,
ModifiedTime = DateTime.Now,
};
await _dbContext.InsertAsync(registry);
@@ -127,6 +131,10 @@ public class DeviceConnectService : IDeviceConnectService
DeployDirection = string.Empty,
Enable = true,
DeployPosition = string.Empty,
CreatedBy = 1,
CreateTime = DateTime.Now,
ModifiedBy = 1,
ModifiedTime = DateTime.Now,
};
await _dbContext.InsertAsync(device);