统一AssignmentStatus字段类型,新建枚举,对应状态
This commit is contained in:
@ -231,6 +231,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string AssignmentStatus { get; set; }
|
||||
public int AssignmentStatus { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -171,6 +171,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
|
||||
/// <summary>
|
||||
/// Assignment status.
|
||||
/// </summary>
|
||||
public string? AssignmentStatus { get; set; }
|
||||
public int? AssignmentStatus { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
22
QYZH.InteractiveMagazine.Models/Enum/AssignmentStatusEnum.cs
Normal file
22
QYZH.InteractiveMagazine.Models/Enum/AssignmentStatusEnum.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.Models.Enum
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业分配审核状态枚举: 0-未审核 1-已审核
|
||||
/// </summary>
|
||||
public enum AssignmentStatusEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 未审核
|
||||
/// </summary>
|
||||
[Description("未审核")]
|
||||
UnAssignmented = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 已审核
|
||||
/// </summary>
|
||||
[Description("已审核")]
|
||||
Assignmented = 1
|
||||
}
|
||||
}
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user