fix 增加数据错误类型提醒

This commit is contained in:
2026-01-13 16:09:01 +08:00
parent a9eb4f6bed
commit 6722404519

View File

@@ -107,7 +107,6 @@ public class AppointmentService : IAppointmentService
else
{
(invalids.Contains(gainfo.Type) && item.IsEnterDoorArea).ThrowIfTrue("内部人员无法发起门岗预约");
if (gainfo.Type == GainfoUserTypeEnumType.External)
{
gainfo.Source = request.Source;
@@ -116,6 +115,10 @@ public class AppointmentService : IAppointmentService
await _dbContext.UpdateAsync(gainfo);
}
else
{
throw new UserFriendlyException("访客类型有误!");
}
}
var detail = new VisitorAppointmentDetailEntity