fix 优化任务生成

This commit is contained in:
2024-02-22 16:36:43 +08:00
parent f8e2ff4889
commit 2a21e6bd5b
2 changed files with 2 additions and 3 deletions

View File

@@ -123,10 +123,10 @@ public class SyncPersonJob
//CarNo //CarNo
Remark = item.remark, Remark = item.remark,
Werks = item.WERKS, Werks = item.WERKS,
Employed = item.isowner,
}; };
await _dbContext.InsertAsync(info); await _dbContext.InsertAsync(info);
} }
private async Task UpdatePerson(GainfoSapEntity item) private async Task UpdatePerson(GainfoSapEntity item)
{ {
var gainfo = await _dbContext.Queryable<GainfoEntity>().Where(x => x.IdNo == item.idno).FirstAsync(); var gainfo = await _dbContext.Queryable<GainfoEntity>().Where(x => x.IdNo == item.idno).FirstAsync();
@@ -138,7 +138,6 @@ public class SyncPersonJob
Position = item.web, Position = item.web,
Phone = item.phone, Phone = item.phone,
DepartmentNo = item.appellation, DepartmentNo = item.appellation,
Employed = item.isowner,
Remark = item.remark, Remark = item.remark,
Degree = item.email, Degree = item.email,
Werks = item.WERKS Werks = item.WERKS

View File

@@ -33,7 +33,7 @@ public class CreateGetAttendanceJob
var b = await _dbContext.Queryable<DeviceTaskEntity>() var b = await _dbContext.Queryable<DeviceTaskEntity>()
.Where(x => ds.Contains(x.DeviceUniqueNo)) .Where(x => ds.Contains(x.DeviceUniqueNo))
.Where(x => x.Type == DeviceTaskEnumType.UploadRecord) .Where(x => x.Type == DeviceTaskEnumType.UploadRecord)
.Where(x => x.Status == DeviceTaskStatusEnumType.Process) .Where(x => x.Status == DeviceTaskStatusEnumType.Process || x.Status == DeviceTaskStatusEnumType.Wait)
.AnyAsync(); .AnyAsync();
if (b) if (b)