fix 优化任务生成
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user