修复导入问题

This commit is contained in:
youngq 2024-10-14 16:49:57 +08:00
parent 28b47ed440
commit c09017455a
1 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,9 @@ namespace WGShare.API.Controllers.Frontend
else if (x.RoleId == "房间管理员") else if (x.RoleId == "房间管理员")
roleId = "3"; roleId = "3";
x.RoleId = roleId; x.RoleId = roleId;
x.Subject = x.SubjectName.GetEnumValueFromDescription<SubjectType>();
if (string.IsNullOrWhiteSpace(x.SubjectName))
x.Subject = SubjectType.All;
}); });
await _sqlSugar.Insertable(users).ExecuteCommandAsync(); await _sqlSugar.Insertable(users).ExecuteCommandAsync();