diff --git a/src/Shentun.WebPeis.Application/AppointSchedules/AppointScheduleAppService.cs b/src/Shentun.WebPeis.Application/AppointSchedules/AppointScheduleAppService.cs index 6d761a6..0f79f09 100644 --- a/src/Shentun.WebPeis.Application/AppointSchedules/AppointScheduleAppService.cs +++ b/src/Shentun.WebPeis.Application/AppointSchedules/AppointScheduleAppService.cs @@ -60,7 +60,7 @@ namespace Shentun.WebPeis.AppointSchedules if (input == null || input.MedicalCenterId == Guid.Empty || input.MedicalCenterId == null) { var webPeisOrganizationUnit = await _webPeisOrganizationUnitManager.GetMedicalCenterListAsync(); - if (webPeisOrganizationUnit.Count > 1) + if (webPeisOrganizationUnit.Count > 1 || webPeisOrganizationUnit.Count == 0) { throw new UserFriendlyException("体检中心参数不能为空"); }