fix internal
This commit is contained in:
@@ -43,6 +43,7 @@ public class AppointmentService : IAppointmentService
|
|||||||
|
|
||||||
await _dbContext.InsertAsync(mst);
|
await _dbContext.InsertAsync(mst);
|
||||||
|
|
||||||
|
var invalids = new[] { GainfoUserTypeEnumType.Normal, GainfoUserTypeEnumType.SecurityWhite };
|
||||||
foreach (var item in request.Items)
|
foreach (var item in request.Items)
|
||||||
{
|
{
|
||||||
if (item.IsEnterDoorArea && areas.Where(x => x.Type == AppointmentAreaEnumType.Door)
|
if (item.IsEnterDoorArea && areas.Where(x => x.Type == AppointmentAreaEnumType.Door)
|
||||||
@@ -82,7 +83,7 @@ public class AppointmentService : IAppointmentService
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
(gainfo.Type != GainfoUserTypeEnumType.External && item.IsEnterDoorArea).ThrowIfTrue("内部人员无法发起门岗预约");
|
(invalids.Contains(gainfo.Type) && item.IsEnterDoorArea).ThrowIfTrue("内部人员无法发起门岗预约");
|
||||||
|
|
||||||
if (gainfo.Type == GainfoUserTypeEnumType.External)
|
if (gainfo.Type == GainfoUserTypeEnumType.External)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user