diff --git a/Src/Dlhis.Entity/Device/Enums/DeviceTaskEnumType.cs b/Src/Dlhis.Entity/Device/Enums/DeviceTaskEnumType.cs
index d642dcd5..788c41ec 100644
--- a/Src/Dlhis.Entity/Device/Enums/DeviceTaskEnumType.cs
+++ b/Src/Dlhis.Entity/Device/Enums/DeviceTaskEnumType.cs
@@ -59,7 +59,7 @@ public enum DeviceTaskEnumType
///
- /// 同步时间
+ /// 上传记录
///
[Description("上传记录")]
UploadRecord = 500,
diff --git a/Src/Dlhis.ScheduledTask/Packs/JobPack.cs b/Src/Dlhis.ScheduledTask/Packs/JobPack.cs
index fc4c8870..77a184a7 100644
--- a/Src/Dlhis.ScheduledTask/Packs/JobPack.cs
+++ b/Src/Dlhis.ScheduledTask/Packs/JobPack.cs
@@ -31,7 +31,7 @@ public class JobPack : BaseAppPack
});
//创建设备获取考勤的任务
- RecurringJob.AddOrUpdate("CreateGetAttendance", s => s.RunAsync(), "0 0/1 * * * ?", new RecurringJobOptions
+ RecurringJob.AddOrUpdate("CreateGetUploadRecord", s => s.RunAsync(), "0 0/1 * * * ?", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.Local
});
diff --git a/Src/Dlhis.ScheduledTask/TaskAssignment/Job/CreateGetAttendanceJob.cs b/Src/Dlhis.ScheduledTask/TaskAssignment/Job/CreateGetUploadRecordJob.cs
similarity index 87%
rename from Src/Dlhis.ScheduledTask/TaskAssignment/Job/CreateGetAttendanceJob.cs
rename to Src/Dlhis.ScheduledTask/TaskAssignment/Job/CreateGetUploadRecordJob.cs
index 6c8b6cd7..d17e7215 100644
--- a/Src/Dlhis.ScheduledTask/TaskAssignment/Job/CreateGetAttendanceJob.cs
+++ b/Src/Dlhis.ScheduledTask/TaskAssignment/Job/CreateGetUploadRecordJob.cs
@@ -7,12 +7,12 @@ using Kurisu.SqlSugar.Services;
namespace Dlhis.ScheduledTask.TaskAssignment.Job;
-public class CreateGetAttendanceJob
+public class CreateGetUploadRecordJob
{
private readonly IDbContext _dbContext;
private readonly ILogger _logger;
- public CreateGetAttendanceJob(IDbContext dbContext, ILogger logger)
+ public CreateGetUploadRecordJob(IDbContext dbContext, ILogger logger)
{
_logger = logger;
_dbContext = dbContext;
@@ -25,7 +25,8 @@ public class CreateGetAttendanceJob
{
var devices = await _dbContext.Queryable()
.Where(x => x.Enable)
- .Where(x => x.Type == DeviceTypeEnumType.Attendance || (x.Type == DeviceTypeEnumType.Door && x.AsAttendance) || x.Type == DeviceTypeEnumType.Door)
+ .Where(x => x.Type == DeviceTypeEnumType.Attendance || (x.Type == DeviceTypeEnumType.Door && x.AsAttendance)
+ || x.Type == DeviceTypeEnumType.Door)
.ToListAsync();
var ds = devices.Select(x => x.UniqueNo).ToList();
@@ -48,7 +49,6 @@ public class CreateGetAttendanceJob
TenantId = x.TenantId,
Version = 0,
- UserNo = string.Empty,
Type = DeviceTaskEnumType.UploadRecord,
CreatedBy = 1,
@@ -56,7 +56,8 @@ public class CreateGetAttendanceJob
ModifiedBy = 1,
ModifiedTime = DateTime.Now,
- }).ToList();
+ })
+ .ToList();
await _dbContext.InsertAsync(tasks);
}