feat 门岗申请记录列表

This commit is contained in:
2024-11-21 15:48:04 +08:00
parent 484be10fde
commit 471df07386
6 changed files with 110 additions and 28 deletions

View File

@@ -134,6 +134,7 @@ public class DeviceUploadLogService : IDeviceUploadLogService
.Select(x => SqlFunc.AggregateMax(x.RaiseDateTime))
.SingleAsync();
//0001-01-01 00:00:00
return new DateTimePeriod
{
Start = start,

View File

@@ -338,10 +338,14 @@ public class AssignmentService : IAssignmentService
var deviceNos = data.Select(x => x.DeviceUniqueNo).Distinct().ToList();
var result = new Dictionary<string, DateTime?>(deviceNos.Count);
var logInfos = await _dbContext.Queryable<DeviceUploadLogEntity>().GroupBy(x => x.DeviceUniqueNo).Select(x => new
{
x.DeviceUniqueNo, RaiseDateTime = SqlFunc.AggregateMax(x.RaiseDateTime)
}).ToListAsync();
var logInfos = await _dbContext.Queryable<DeviceUploadLogEntity>()
.GroupBy(x => x.DeviceUniqueNo)
.Select(x => new
{
x.DeviceUniqueNo,
RaiseDateTime = SqlFunc.AggregateMax(x.RaiseDateTime)
})
.ToListAsync();
foreach (var item in deviceNos)
{
@@ -353,8 +357,6 @@ public class AssignmentService : IAssignmentService
}
/// <summary>
/// 处理老档案数据
/// </summary>