Compare commits

..

2 Commits

View File

@ -549,6 +549,14 @@ namespace APT.FM.WebApi.Controllers.Api.FM
{
throw new Exception(message);
}
var listDepChange = entityUpdateList;
if (entityUpdateList != null && entityUpdateList.Count() > 0)
{
var listDepID = entityUpdateList.Select(e => e.ID);
entityUpdateList = GetEntities<T_FM_DEPARTMENT>(e => listDepID.Contains(e.ID), null).ToList();
listDepChange = listDepChange.Where(e => !e.IS_DELETED).ToList();
}
this.UnifiedCommit(() =>
{
//BantchUpdateEntity_noneBase
@ -572,6 +580,8 @@ namespace APT.FM.WebApi.Controllers.Api.FM
this.BantchUpdateEntity_noneBase(teamInfos);
if (entityUpdateList != null && entityUpdateList.Any())
this.BantchUpdateEntity_noneBase(entityUpdateList);
if (listDepChange != null && listDepChange.Any())
BantchSaveEntityNoCommit(listDepChange);
//if (entity != null)
// this.UpdateEntityNoCommit(entity);
});