This commit is contained in:
2025-05-08 14:57:35 +08:00
parent ad027c2e3b
commit 6d1f6a72a9

View File

@@ -374,7 +374,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
public async Task Test()
{
var before60Days = DateTime.Today.AddDays(-60).AddSeconds(1);
var data = await _dbContext.Queryable<DeviceUploadLogEntity>().Where(x => x.RaiseDateTime < before60Days).OrderBy(x => x.Id).ToPageListAsync(1, 1000);
var data = await _dbContext.Queryable<DeviceUploadLogEntity>().Where(x => x.RaiseDateTime < before60Days).OrderBy(x => x.Id).ToPageListAsync(1, 500);
await _dbContext.DeleteReallyAsync(data);
const string tableName = "deviceuploadlog_20250107";