feat 门岗申请记录列表
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user