From edc0122a3b65e21b891d73a651ead1539c7ac1c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=B7=E6=AD=A6=20=E9=BB=84?= <865114447@qq.com>
Date: Tue, 7 Jul 2026 10:36:14 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80AssignmentStatus=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5=E7=B1=BB=E5=9E=8B=EF=BC=8C=E6=96=B0=E5=BB=BA=E6=9E=9A?=
=?UTF-8?q?=E4=B8=BE=EF=BC=8C=E5=AF=B9=E5=BA=94=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Entity/JournalPageTaskUserAnswer.cs | 2 +-
.../JournalPageTaskUserAnswerSnapshot.cs | 2 +-
.../Enum/AssignmentStatusEnum.cs | 22 +++++++++++++++++++
.../Consumers/JournalTaskReceiveConsumer.cs | 2 +-
4 files changed, 25 insertions(+), 3 deletions(-)
create mode 100644 QYZH.InteractiveMagazine.Models/Enum/AssignmentStatusEnum.cs
diff --git a/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswer.cs b/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswer.cs
index 2a18c41..4f04a12 100644
--- a/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswer.cs
+++ b/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswer.cs
@@ -231,6 +231,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Default:
/// Nullable:True
///
- public string AssignmentStatus { get; set; }
+ public int AssignmentStatus { get; set; }
}
}
diff --git a/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswerSnapshot.cs b/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswerSnapshot.cs
index 1d0ee51..3912d7f 100644
--- a/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswerSnapshot.cs
+++ b/QYZH.InteractiveMagazine.Models/Entity/JournalPageTaskUserAnswerSnapshot.cs
@@ -171,6 +171,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
///
/// Assignment status.
///
- public string? AssignmentStatus { get; set; }
+ public int? AssignmentStatus { get; set; }
}
}
diff --git a/QYZH.InteractiveMagazine.Models/Enum/AssignmentStatusEnum.cs b/QYZH.InteractiveMagazine.Models/Enum/AssignmentStatusEnum.cs
new file mode 100644
index 0000000..a4253a3
--- /dev/null
+++ b/QYZH.InteractiveMagazine.Models/Enum/AssignmentStatusEnum.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+
+namespace QYZH.InteractiveMagazine.Models.Enum
+{
+ ///
+ /// 作业分配审核状态枚举: 0-未审核 1-已审核
+ ///
+ public enum AssignmentStatusEnum
+ {
+ ///
+ /// 未审核
+ ///
+ [Description("未审核")]
+ UnAssignmented = 0,
+
+ ///
+ /// 已审核
+ ///
+ [Description("已审核")]
+ Assignmented = 1
+ }
+}
diff --git a/QYZH.InteractiveMagazine.WorkService/Consumers/JournalTaskReceiveConsumer.cs b/QYZH.InteractiveMagazine.WorkService/Consumers/JournalTaskReceiveConsumer.cs
index 0a5cd1d..fa37c71 100644
--- a/QYZH.InteractiveMagazine.WorkService/Consumers/JournalTaskReceiveConsumer.cs
+++ b/QYZH.InteractiveMagazine.WorkService/Consumers/JournalTaskReceiveConsumer.cs
@@ -948,7 +948,7 @@ public class JournalTaskReceiveConsumer(
PageAnswerDotUrl = string.Empty,
BreakCount = GetBreakCount(scoreUnit),
BreakTimes = SerializeBreakTimes(scoreUnit),
- AssignmentStatus = answerStatus.ToString(),
+ AssignmentStatus = (int)AssignmentStatusEnum.UnAssignmented,
Status = (int)answerStatus,
CreatedBy = data.UserId.ToString(),
CreatedAt = data.CreatedTime == default ? now : data.CreatedTime,