班前会参会人员不能为空

This commit is contained in:
何美荣 2026-05-18 09:29:29 +08:00
parent b52b4de71b
commit d623501191

View File

@ -138,9 +138,14 @@ namespace APT.FO.WebApi.Controllers.Api.FO
{ {
throw new Exception("请填写注意事项及防护措施"); 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) if (entity.CLASS_ID == null)
{ {