班前会参会人员不能为空
This commit is contained in:
parent
b52b4de71b
commit
d623501191
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user