From e06aa1089830ba86f979b6ed4b20895b9f502666 Mon Sep 17 00:00:00 2001 From: hardstylewyl <827778732@qq.com> Date: Mon, 10 Mar 2025 14:21:49 +0800 Subject: [PATCH] change-entity: WarningNotifyTaskEntity - rename: WarningRuleId => WarningRuleItemId --- .../WarningAggregate/WarningNotifyTaskEntity.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/SJZY.Track.Domain/Aggregates/WarningAggregate/WarningNotifyTaskEntity.cs b/src/SJZY.Track.Domain/Aggregates/WarningAggregate/WarningNotifyTaskEntity.cs index bf57036b..5f04b3b6 100644 --- a/src/SJZY.Track.Domain/Aggregates/WarningAggregate/WarningNotifyTaskEntity.cs +++ b/src/SJZY.Track.Domain/Aggregates/WarningAggregate/WarningNotifyTaskEntity.cs @@ -12,8 +12,8 @@ public sealed class WarningNotifyTaskEntity : IFullAuditedBasicEntitys, IAggrega [SugarColumn(ColumnName = "WarningId", ColumnDescription = "预警主体Id")] public int WarningId { get; set; } // 预警Id - [SugarColumn(ColumnName = "WarningRuleId", ColumnDescription = "预警规则Id")] - public int WarningRuleId { get; set; } // 预警规则项目Id + [SugarColumn(ColumnName = "WarningRuleItemId", ColumnDescription = "预警规则项目Id")] + public int WarningRuleItemId { get; set; } // 预警规则项目Id [SugarColumn(ColumnName = "WarningDetailsId", ColumnDescription = "预警明细Id")] public string WarningDetailsId { get; set; } //预警明细id @@ -30,7 +30,6 @@ public sealed class WarningNotifyTaskEntity : IFullAuditedBasicEntitys, IAggrega [SugarColumn(ColumnName = "NotifyUsers", ColumnDescription = "通知人Json eg: [{\"UserId\":1,\"UserName\":\"张三\"},{\"UserId\":2,\"UserName\":\"李四\"}]")] public string NotifyUsers { get; set; } //通知人Json eg: [{"UserId":1,"UserName":"张三"},{"UserId":2,"UserName":"李四"}] - [SugarColumn(ColumnName = "Tags", ColumnDescription = "标签集合(,分割)")] public string? Tags { get; set; } // 标签(加急?) @@ -41,11 +40,11 @@ public sealed class WarningNotifyTaskEntity : IFullAuditedBasicEntitys, IAggrega { } - public WarningNotifyTaskEntity(int orderId, int warningId, int warningRuleId, string warningDetailsId, int warningType, string notifyUsers, string? tags = null) + public WarningNotifyTaskEntity(int orderId, int warningId, int warningRuleItemId, string warningDetailsId, int warningType, string notifyUsers, string? tags = null) { OrderId = orderId; WarningId = warningId; - WarningRuleId = warningRuleId; + WarningRuleItemId = warningRuleItemId; WarningDetailsId = warningDetailsId; WarningType = warningType; NotifyUsers = notifyUsers; @@ -53,4 +52,4 @@ public sealed class WarningNotifyTaskEntity : IFullAuditedBasicEntitys, IAggrega CreateTime = DateTime.Now; IsClosed = false; } -} +} \ No newline at end of file