fix model转换
This commit is contained in:
@@ -5,6 +5,7 @@ using Dlhis.Entity.Basic.Entity;
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
using Dlhis.Entity.Device.Entities;
|
||||
using Dlhis.Entity.Device.Enums;
|
||||
using Dlhis.Entity.Device.Models;
|
||||
using Dlhis.Jip.Api;
|
||||
using Dlhis.Jip.Api.Requests;
|
||||
using Dlhis.ScheduledTask.DeviceUploadLog.Request;
|
||||
@@ -219,7 +220,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
|
||||
|
||||
needUpload = workGridInfo.PeriodType.HasValue;
|
||||
|
||||
workGridInfo.IsError = workGridInfo.TimeSetting != null && workGridInfo.PeriodType.HasValue == false;
|
||||
if (!needUpload)
|
||||
{
|
||||
try
|
||||
@@ -489,19 +490,4 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
Data = r
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public class WorkGridInfo
|
||||
{
|
||||
public bool IsError => TimeSetting != null && PeriodType.HasValue == false;
|
||||
public WorkGridInfoDetail WorkGrid { get; set; }
|
||||
public WorkGridTimePeriodEnumType? PeriodType { get; set; }
|
||||
public object TimeSetting { get; set; }
|
||||
}
|
||||
|
||||
public class WorkGridInfoDetail
|
||||
{
|
||||
public Guid WorkGridCode { get; set; }
|
||||
public string WorkGridName { get; set; }
|
||||
public string LeaderUserCode { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user