fix 默认为1写入
This commit is contained in:
@@ -24,6 +24,6 @@ public class DeviceUploadLogUploadRequest
|
||||
/// 记录序号
|
||||
/// </summary>
|
||||
public string SerialNo { get; set; }
|
||||
|
||||
public bool Status { get; set; }
|
||||
}
|
||||
|
||||
public bool? Status { get; set; }
|
||||
}
|
||||
@@ -69,7 +69,9 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
: DeviceUploadLogTypeEnumType.Door,
|
||||
|
||||
TenantId = device.TenantId,
|
||||
Status = true
|
||||
Status = true,
|
||||
CreatedBy = 1,
|
||||
ModifiedBy = 1,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -147,7 +149,9 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
: DeviceUploadLogTypeEnumType.Door,
|
||||
|
||||
TenantId = device.TenantId,
|
||||
Status = request.Status
|
||||
Status = request.Status ?? true,
|
||||
CreatedBy = 1,
|
||||
ModifiedBy = 1,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user