This commit is contained in:
glz
2026-07-07 15:53:29 +08:00
5 changed files with 41 additions and 3 deletions

View File

@ -231,6 +231,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// Default:
/// Nullable:True
/// </summary>
public string AssignmentStatus { get; set; }
public int AssignmentStatus { get; set; }
}
}

View File

@ -171,6 +171,6 @@ namespace QYZH.InteractiveMagazine.Models.Entity
/// <summary>
/// Assignment status.
/// </summary>
public string? AssignmentStatus { get; set; }
public int? AssignmentStatus { get; set; }
}
}

View 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
}
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<key id="464a114e-8722-43ec-b421-bc39d97f6a6d" version="1">
<creationDate>2026-07-06T07:54:57.8414657Z</creationDate>
<activationDate>2026-07-06T07:54:57.8247502Z</activationDate>
<expirationDate>2026-10-04T07:54:57.8247502Z</expirationDate>
<descriptor deserializerType="Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
<descriptor>
<encryption algorithm="AES_256_CBC" />
<validation algorithm="HMACSHA256" />
<masterKey p4:requiresEncryption="true" xmlns:p4="http://schemas.asp.net/2015/03/dataProtection">
<!-- Warning: the key below is in an unencrypted form. -->
<value>eHtVAu0iXhzOZG+D+OtGwyuEUuxMSOeJb0EYcpcAcjGfaK316jIbOZuIeLU0X8nhnvFPigbBOHobSu7KDSiQ1Q==</value>
</masterKey>
</descriptor>
</descriptor>
</key>

View File

@ -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,