fix 代码优化
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
using Dlhis.Entity.Device.Entities;
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Dlhis.Sys.Api;
|
||||
using Dlhis.User.Api.Response;
|
||||
using Dlhis.Sys.Api.Response;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Kurisu.Core.DataAccess.Entity;
|
||||
using Kurisu.SqlSugar.Services;
|
||||
@@ -29,6 +29,8 @@ public class CreateDefinitelyGroupJob
|
||||
sqlSugarOptionsService.IgnoreTenant = true;
|
||||
}
|
||||
|
||||
private static readonly string _remark = "系统自动生成";
|
||||
|
||||
public async Task RunAsync()
|
||||
{
|
||||
_dbContext.Client.QueryFilter.ClearAndBackup<ITenantId>();
|
||||
@@ -77,6 +79,7 @@ public class CreateDefinitelyGroupJob
|
||||
Name = grp,
|
||||
IsDefault = grp.Equals("*自定义人员分组"),
|
||||
Editable = false,
|
||||
Remark = _remark,
|
||||
|
||||
CreatedBy = 1,
|
||||
CreateTime = DateTime.Now,
|
||||
@@ -103,6 +106,7 @@ public class CreateDefinitelyGroupJob
|
||||
Type = type,
|
||||
Name = grp,
|
||||
Editable = false,
|
||||
Remark = _remark,
|
||||
|
||||
CreatedBy = 1,
|
||||
CreateTime = DateTime.Now,
|
||||
@@ -126,6 +130,7 @@ public class CreateDefinitelyGroupJob
|
||||
Type = type,
|
||||
Name = workplaceName,
|
||||
Editable = false,
|
||||
Remark = _remark,
|
||||
|
||||
CreatedBy = 1,
|
||||
CreateTime = DateTime.Now,
|
||||
@@ -148,6 +153,7 @@ public class CreateDefinitelyGroupJob
|
||||
Type = type,
|
||||
Name = factoryName,
|
||||
Editable = false,
|
||||
Remark = _remark,
|
||||
|
||||
CreatedBy = 1,
|
||||
CreateTime = DateTime.Now,
|
||||
|
||||
@@ -57,6 +57,11 @@ public class DeviceTaskAssignmentResponse
|
||||
/// </summary>
|
||||
public string ResultMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据状态最新修改时间
|
||||
/// </summary>
|
||||
|
||||
@@ -38,6 +38,7 @@ public class DeviceTaskAssignmentService : IDeviceTaskAssignmentService
|
||||
UserName = ga.Name,
|
||||
UserCode = ga.Code,
|
||||
Type = deviceTask.Type,
|
||||
CreateTime = deviceTask.CreateTime,
|
||||
LastUpdateTime = deviceTask.ModifiedTime
|
||||
})
|
||||
.ToPageListAsync(request);
|
||||
|
||||
Reference in New Issue
Block a user