fix 任务图片连接处理
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Kurisu.AspNetCore.CustomClass;
|
||||
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Response;
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Dto;
|
||||
|
||||
public class ScheduleDto
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Response;
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Dto;
|
||||
|
||||
public class TaskCombineDto
|
||||
{
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Response;
|
||||
using Dlhis.ScheduledTask.TaskAssignment.Dto;
|
||||
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Response;
|
||||
|
||||
/// <summary>
|
||||
/// 设备任务
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Response;
|
||||
using Dlhis.ScheduledTask.TaskAssignment.Dto;
|
||||
|
||||
namespace Dlhis.ScheduledTask.TaskAssignment.Response;
|
||||
|
||||
public class ScheduleToDeviceResponse
|
||||
{
|
||||
|
||||
@@ -14,6 +14,11 @@ public class UserToDeviceResponse
|
||||
/// </summary>
|
||||
public string UserNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 老系统档案号
|
||||
/// </summary>
|
||||
public string OldUserNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 人员学工号
|
||||
/// </summary>
|
||||
|
||||
@@ -51,7 +51,7 @@ public class AssignmentService : IAssignmentService
|
||||
var dc = x.Key.DeviceConnectionInfo ?? "{}";
|
||||
var func = x.Key.FuncStr ?? "[]";
|
||||
|
||||
var jobj = new JObject
|
||||
var jObj = new JObject
|
||||
{
|
||||
{ "connectionInfo", JToken.Parse(dc) },
|
||||
{ "function", JArray.Parse(func) }
|
||||
@@ -61,7 +61,7 @@ public class AssignmentService : IAssignmentService
|
||||
{
|
||||
Brand = b,
|
||||
DeviceUniqueNo = d,
|
||||
DeviceInfo = jobj,
|
||||
DeviceInfo = jObj,
|
||||
Tasks = x.Select(item =>
|
||||
{
|
||||
var key = $"face:{item.UserCode}";
|
||||
@@ -83,7 +83,7 @@ public class AssignmentService : IAssignmentService
|
||||
{
|
||||
dto.Info = new UserToDeviceResponse
|
||||
{
|
||||
UserId = item.UserId.HasValue ? item.UserId.Value : 0,
|
||||
UserId = item.UserId ?? 0,
|
||||
UserNo = item.UserNo,
|
||||
UserCode = item.UserCode,
|
||||
UserName = item.UserName,
|
||||
|
||||
Reference in New Issue
Block a user