dev #57

Merged
hy merged 3 commits from dev into master 2026-04-21 16:49:01 +08:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 182e891584 - Show all commits

View File

@ -498,7 +498,14 @@ namespace Learn.Archives.API.Controllers
}, ex => { throw ex; });
}
//写入选科方向
userCenterUpdate = userCenterUpdate.Where(s =>
new object[] { s.Phone,
s.GLSubject,
s.GSubject1,
s.GSubject2,}
.Any(x => !(x == default || x == null))).ToList();
if (userCenterUpdate.Count > 0)
{
await userService.AsUpdateable(userCenterUpdate)
.UpdateColumns(s => new
{
@ -511,6 +518,7 @@ namespace Learn.Archives.API.Controllers
.IgnoreColumns(ignoreAllNullColumns: true, ignoreAllDefaultValue: true)
.WhereColumns(it => new { it.Id })
.ExecuteCommandAsync();
}
return Ok();
}