diff --git a/src/WMS.Web.Domain/Entitys/SubscribeNotification.cs b/src/WMS.Web.Domain/Entitys/SubscribeNotification.cs
index 007ae926..96306539 100644
--- a/src/WMS.Web.Domain/Entitys/SubscribeNotification.cs
+++ b/src/WMS.Web.Domain/Entitys/SubscribeNotification.cs
@@ -63,7 +63,7 @@ namespace WMS.Web.Domain.Entitys
/// 操作时间
///
[Column("OperateTime")]
- public DateTime OperateTime { get; set; }
+ public DateTime OperateTime { get; set; } = DateTime.Now;
///
/// 新增
///
@@ -72,6 +72,7 @@ namespace WMS.Web.Domain.Entitys
{
this.CreatorId = creatorId;
this.CreateTime = DateTime.Now;
+ this.OperateTime = DateTime.Now;
}
///
/// 修改
diff --git a/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs b/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs
index 4c43be6c..0667b906 100644
--- a/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs
+++ b/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs
@@ -174,7 +174,7 @@ namespace WMS.Web.Repositories
}
var query = _context.SubscribeNotification
- .OrderByDescending(o => o.Id)
+ .OrderByDescending(o => o.OperateTime)
.Where(adv => 1 == 1 && adv.IsDelete != true);
if (!string.IsNullOrEmpty(dto.Creator))