This commit is contained in:
xiaolipro 2024-10-09 14:14:42 +08:00
parent 60571b3224
commit 16541d998d
3 changed files with 3 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class ForewarningNotifyService : IForewarningNotifyService, ITransientDep
Counter = entry.Counter, Counter = entry.Counter,
IsLast = rule.WarnCount == entry.Counter, IsLast = rule.WarnCount == entry.Counter,
OrderId = entry.OrderId, OrderId = entry.OrderId,
OrderNo = orderNoDict[entry.OrderId], OrderNo = orderNoDict.TryGetValue(entry.OrderId, out var orderNo) ? orderNo : string.Empty,
WarningStatus = WarningStatus.UnProcessed, WarningStatus = WarningStatus.UnProcessed,
NotifyUserId = notifyUser.UserId, NotifyUserId = notifyUser.UserId,
NotifyUserName = notifyUser.UserName, NotifyUserName = notifyUser.UserName,

View File

@ -49,6 +49,7 @@ public class OrderWarningService : ApplicationService
var item = new GetOrderWarningPageOutput var item = new GetOrderWarningPageOutput
{ {
SubSystemName = x.SubSystemName, SubSystemName = x.SubSystemName,
OrderNo = x.OrderNo,
Rule = x.Rule, Rule = x.Rule,
Counter = x.Counter, Counter = x.Counter,
IsLast = x.IsLast, IsLast = x.IsLast,

View File

@ -105,6 +105,7 @@ public class WarningQueries : ISugarRepository, IWarningQueries,
Id = x.Id, Id = x.Id,
Name = x.OrderNo Name = x.OrderNo
}) })
.Filter(null, true)
.ToListAsync(); .ToListAsync();
} }
} }