Compare commits

..

No commits in common. "caec6b98c02455b41220cc3f2bc05f0b9206ea5f" and "17c6cf4deef4ffc63c6c661c536d6323bc76dc38" have entirely different histories.

View File

@ -549,14 +549,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
{ {
throw new Exception(message); 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(() => this.UnifiedCommit(() =>
{ {
//BantchUpdateEntity_noneBase //BantchUpdateEntity_noneBase
@ -580,8 +572,6 @@ namespace APT.FM.WebApi.Controllers.Api.FM
this.BantchUpdateEntity_noneBase(teamInfos); this.BantchUpdateEntity_noneBase(teamInfos);
if (entityUpdateList != null && entityUpdateList.Any()) if (entityUpdateList != null && entityUpdateList.Any())
this.BantchUpdateEntity_noneBase(entityUpdateList); this.BantchUpdateEntity_noneBase(entityUpdateList);
if (listDepChange != null && listDepChange.Any())
BantchSaveEntityNoCommit(listDepChange);
//if (entity != null) //if (entity != null)
// this.UpdateEntityNoCommit(entity); // this.UpdateEntityNoCommit(entity);
}); });