fix 基础字段处理
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user