fix 默认值
This commit is contained in:
@@ -190,6 +190,7 @@ public class DeviceService : IDeviceService
|
||||
DeviceUniqueNo = entity.UniqueNo,
|
||||
Type = DeviceUploadLogTypeEnumType.Raise,
|
||||
UserUniqueNo = string.Empty,
|
||||
SerialNo = string.Empty,
|
||||
RaiseDateTime = entity.CreateTime,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user