修复bug

This commit is contained in:
18942506660
2024-03-27 16:39:22 +08:00
parent 7c6c1f7c0d
commit a032edb059
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ namespace WMS.Web.Domain.Entitys
/// 操作时间 /// 操作时间
/// </summary> /// </summary>
[Column("OperateTime")] [Column("OperateTime")]
public DateTime OperateTime { get; set; } public DateTime OperateTime { get; set; } = DateTime.Now;
/// <summary> /// <summary>
/// 新增 /// 新增
/// </summary> /// </summary>
@@ -72,6 +72,7 @@ namespace WMS.Web.Domain.Entitys
{ {
this.CreatorId = creatorId; this.CreatorId = creatorId;
this.CreateTime = DateTime.Now; this.CreateTime = DateTime.Now;
this.OperateTime = DateTime.Now;
} }
/// <summary> /// <summary>
/// 修改 /// 修改

View File

@@ -174,7 +174,7 @@ namespace WMS.Web.Repositories
} }
var query = _context.SubscribeNotification var query = _context.SubscribeNotification
.OrderByDescending(o => o.Id) .OrderByDescending(o => o.OperateTime)
.Where(adv => 1 == 1 && adv.IsDelete != true); .Where(adv => 1 == 1 && adv.IsDelete != true);
if (!string.IsNullOrEmpty(dto.Creator)) if (!string.IsNullOrEmpty(dto.Creator))