opt:预警过滤掉创建时间不足12小时的

This commit is contained in:
李鹏军 2024-03-26 10:44:05 +08:00
parent 2fd73776af
commit 2520955613

View File

@ -62,6 +62,7 @@ public class OrderRepository : BasicRepository<OrderEntity>, IOrderRepository, I
return await Context.Queryable<TrackPushConfigEntity>() return await Context.Queryable<TrackPushConfigEntity>()
.LeftJoin<OrderEntity>((a, b) => a.SubSystemId == b.SubSystemId && a.CustomId == b.CustomId) .LeftJoin<OrderEntity>((a, b) => a.SubSystemId == b.SubSystemId && a.CustomId == b.CustomId)
.Where((a, b) => !b.IsCompleted && b.QuestionType != errorType) .Where((a, b) => !b.IsCompleted && b.QuestionType != errorType)
.Where("a.CreateTime < DATE_SUB(now(),INTERVAL 12 hour)") // 过滤掉创建时间不足12小时的
.Select((a, b) => new OrderEntity .Select((a, b) => new OrderEntity
{ {
Id = b.Id, Id = b.Id,