From b0c34843f1cc54c813748eda686e7fd32478b9c4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com> Date: Mon, 3 Jun 2024 20:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppointSchedules/AppointScheduleAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("体检中心参数不能为空"); }