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) {