取消排班为空
This commit is contained in:
parent
de730d78c6
commit
5b361c8400
@ -34,10 +34,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
|||||||
return SafeExecute<bool>(() =>
|
return SafeExecute<bool>(() =>
|
||||||
{
|
{
|
||||||
|
|
||||||
if (entity == null || !entity.Nav_DepartmentSchedulingDetail.Any(i => !i.IS_DELETED))
|
|
||||||
{
|
|
||||||
this.ThrowError("040004");
|
|
||||||
}
|
|
||||||
var detail = entity.Nav_DepartmentSchedulingDetail;
|
var detail = entity.Nav_DepartmentSchedulingDetail;
|
||||||
var repeatPersonIds = detail.Where(t => t.IS_DELETED == false).GroupBy(x => x.PERSON_ID).Where(x => x.Count() > 1).Select(t => t.Key);
|
var repeatPersonIds = detail.Where(t => t.IS_DELETED == false).GroupBy(x => x.PERSON_ID).Where(x => x.Count() > 1).Select(t => t.Key);
|
||||||
if (repeatPersonIds.Any())
|
if (repeatPersonIds.Any())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user