fix 增加isError显示
This commit is contained in:
@@ -176,7 +176,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
{
|
||||
var startTime = nightTimePeriod.Start.AddMinutes(-nightTimePeriod.Before);
|
||||
var endTime = nightTimePeriod.End.AddMinutes(nightTimePeriod.After);
|
||||
|
||||
|
||||
if (currentNightWorkGridSchedules.Any(x => x.Date == currentDateOnly))
|
||||
{
|
||||
var currentWorkGrid = workGrids.First(x => x.Code == currentNightWorkGridSchedules.First(p => p.Date == currentDateOnly).WorkGridCode);
|
||||
@@ -186,7 +186,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
WorkGridName = currentWorkGrid.Name,
|
||||
LeaderUserCode = currentWorkGrid.LeaderUserCode
|
||||
};
|
||||
|
||||
|
||||
var start = currentDateOnly.ToDateTime(startTime);
|
||||
var end = currentDateOnly.ToDateTime(new TimeOnly(23, 59, 59, 999));
|
||||
|
||||
@@ -194,8 +194,6 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
{
|
||||
workGridInfo.PeriodType = WorkGridTimePeriodEnumType.Night;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (currentNightWorkGridSchedules.Any(x => x.Date == currentDateOnly.AddDays(-1)))
|
||||
@@ -207,7 +205,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
WorkGridName = currentWorkGrid.Name,
|
||||
LeaderUserCode = currentWorkGrid.LeaderUserCode
|
||||
};
|
||||
|
||||
|
||||
var start = currentDateOnly.AddDays(-1).ToDateTime(startTime);
|
||||
var end = currentDateOnly.ToDateTime(endTime);
|
||||
|
||||
@@ -408,6 +406,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
NeedUpload = x.NeedUpload,
|
||||
Sync = x.Sync,
|
||||
Status = x.Status,
|
||||
WorkGridInfo = x.WorkGridInfo
|
||||
}).ToPageListAsync(request.PageIndex, request.PageSize);
|
||||
|
||||
return new Pagination<DeviceUploadLogUserResponse>
|
||||
@@ -473,6 +472,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
|
||||
NeedUpload = x.NeedUpload,
|
||||
Sync = x.Sync,
|
||||
Status = x.Status,
|
||||
WorkGridInfo = x.WorkGridInfo
|
||||
}).ToPageListAsync(request.PageIndex, request.PageSize);
|
||||
|
||||
return new Pagination<DeviceUploadLogResponse>
|
||||
|
||||
Reference in New Issue
Block a user