dev #34

Merged
hy merged 2 commits from dev into staging 2025-11-13 16:57:06 +08:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 0f1701a3fa - Show all commits

View File

@ -106,6 +106,7 @@ namespace Learn.Archives.API.Controllers
if (e == null || e.UserCenterId == 0)
Oh.ModelError("无效数据");
var has = await baseService.AsQueryable().FirstAsync(s => s.UserCenterId == e.UserCenterId);
e.Status = e.Status ?? UserStatusEnum.;
if (has == null)
await baseService.InsertAsync(e);
else

View File

@ -51,6 +51,7 @@ namespace Learn.Archives.Core.Model
/// <summary>
/// 学生状态
/// </summary>
[SugarColumn(IsNullable = true)]
public UserStatusEnum? Status { get; set; }
/// <summary>