fix 默认值

This commit is contained in:
2025-01-09 17:37:28 +08:00
parent 212a46dc75
commit 6b37ffc948
2 changed files with 2 additions and 1 deletions

View File

@@ -190,6 +190,7 @@ public class DeviceService : IDeviceService
DeviceUniqueNo = entity.UniqueNo,
Type = DeviceUploadLogTypeEnumType.Raise,
UserUniqueNo = string.Empty,
SerialNo = string.Empty,
RaiseDateTime = entity.CreateTime,
});
}

View File

@@ -12,7 +12,7 @@ namespace Dlhis.Entity.Device.Entities;
public class DeviceUploadLogEntity : SugarBaseEntity, ITenantId
{
[SugarColumn(IsNullable = false)]
public string SerialNo { get; set; }
public string SerialNo { get; set; } = string.Empty;
/// <summary>
/// 设备code