This commit is contained in:
2025-05-07 16:40:16 +08:00
parent 9654e38c72
commit 1007880a0f

View File

@@ -374,9 +374,11 @@ public class DeviceUploadLogService : IDeviceUploadLogService
public async Task Test() public async Task Test()
{ {
var data = await _dbContext.Queryable<DeviceUploadLogEntity>().OrderBy(x => x.Id).SingleAsync(); var data = await _dbContext.Queryable<DeviceUploadLogEntity>().OrderBy(x => x.Id).SingleAsync();
var tableName = "deviceuploadlog_20250107";
await _dbContext.Client.Insertable(data).AS(tableName).ExecuteCommandAsync();
await _dbContext.DeleteReallyAsync(data); await _dbContext.DeleteReallyAsync(data);
var tableName = "deviceuploadlog_20250107";
data.Id = 0;
await _dbContext.Client.Insertable(data).AS(tableName).ExecuteCommandAsync();
} }
public async Task<DateTimePeriod> GetDeviceUploadRecordSettingAsync(string deviceNo) public async Task<DateTimePeriod> GetDeviceUploadRecordSettingAsync(string deviceNo)