fix 默认为1写入

This commit is contained in:
2024-08-08 16:40:21 +08:00
parent aff935f15c
commit c078ce8830
2 changed files with 9 additions and 5 deletions

View File

@@ -24,6 +24,6 @@ public class DeviceUploadLogUploadRequest
/// 记录序号
/// </summary>
public string SerialNo { get; set; }
public bool Status { get; set; }
}
public bool? Status { get; set; }
}

View File

@@ -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,
});
}