From d6235011912776881bcbd5be756d6317623f87a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=BE=8E=E8=8D=A3?= <10755671+mei-rong-he@user.noreply.gitee.com> Date: Mon, 18 May 2026 09:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E5=89=8D=E4=BC=9A=E5=8F=82=E4=BC=9A?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PreShiftMeetingRecordController.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs index f2f7128..e2f1418 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/PreShiftMeetingRecordController.cs @@ -138,9 +138,14 @@ namespace APT.FO.WebApi.Controllers.Api.FO { throw new Exception("请填写注意事项及防护措施"); } - if (users == null || users.Count(t => t.IS_DELETED == false) == 0) + if (users == null) { - throw new Exception("通知人员不能为空"); + throw new Exception("参会人员不能为空"); + } + var userCount = users.Where(t => t.IS_DELETED == false).Count(); + if (userCount == 0) + { + throw new Exception("参会人员不能为空"); } if (entity.CLASS_ID == null) {