fix 考勤上传增加安全人员名单

This commit is contained in:
2025-01-10 12:03:48 +08:00
parent d004c60d42
commit 4837e7af97

View File

@@ -29,7 +29,7 @@ public class SyncOriginCardInfoJob : BaseJob
var requests = await DbContext.Queryable<DeviceUploadLogEntity>()
.LeftJoin<DeviceEntity>((x, device) => x.DeviceUniqueNo == device.UniqueNo)
.Where(x => x.ModifiedTime > start)
.Where(x => x.NeedUpload && x.Sync == false && x.UserType == GainfoUserTypeEnumType.Normal)
.Where(x => x.NeedUpload && x.Sync == false && (x.UserType == GainfoUserTypeEnumType.Normal || x.UserType == GainfoUserTypeEnumType.SecurityWhite))
.OrderBy(x => x.ModifiedTime)
.Select((x, device) => new UploadAttendanceRequestItem
{