fix 记录上传人

This commit is contained in:
2025-03-17 12:01:41 +08:00
parent 9847f76760
commit 57f111aaa7

View File

@@ -202,6 +202,7 @@ public class WorkGridScheduleService : IWorkGridScheduleService
/// <inheritdoc />
public async Task ManuallyUploadAsync(List<long> logIds)
{
var sub = _currentUser.GetIntSubjectId();
const string filterString = "{\"IsError\":true";
var requests = await _dbContext.Queryable<DeviceUploadLogEntity>()
@@ -228,6 +229,7 @@ public class WorkGridScheduleService : IWorkGridScheduleService
await _dbContext.Updateable<DeviceUploadLogEntity>()
.SetColumns(x => x.Sync == true)
.SetColumns(x => x.ModifiedTime == DateTime.Now)
.SetColumns(x => x.ModifiedBy == sub)
.Where(x => ids.Contains(x.Id))
.ExecuteCommandAsync();
}