培训需求调查填报 不能没有调查人员 IS_DELETE 处理

This commit is contained in:
wyw 2026-05-27 16:53:11 +08:00
parent 9a979fb50c
commit 5dc571229a

View File

@ -58,9 +58,9 @@ namespace APT.SC.WebApi.Controllers.Api.SE
{ {
throw new Exception("截止时间至少比发起时间要大于一天"); throw new Exception("截止时间至少比发起时间要大于一天");
} }
if (Demands == null || !Demands.Any() || Demands.Count() < 1) if (Demands == null || !Demands.Any() || Demands.Count() < 1 || Demands.Where(e => !e.IS_DELETED).Count() < 1)
{ {
throw new Exception("请添加培训人员信息!"); throw new Exception("请添加调查人员信息!");
} }
if (entity.LAUNCH_USER_ID == Guid.Empty) if (entity.LAUNCH_USER_ID == Guid.Empty)
{ {