fix 增加数据错误类型提醒
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user