Compare commits
2 Commits
9f65215457
...
2a50c64832
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a50c64832 | ||
|
|
513aa68919 |
@ -747,12 +747,15 @@ namespace APT.SK.WebApi.Controllers.Api
|
|||||||
if (item2 != null && item2.DEPARTMENT_ID != null)
|
if (item2 != null && item2.DEPARTMENT_ID != null)
|
||||||
{
|
{
|
||||||
var first = departs.FirstOrDefault(t => t.ID == item2.DEPARTMENT_ID);
|
var first = departs.FirstOrDefault(t => t.ID == item2.DEPARTMENT_ID);
|
||||||
var level = Enum.GetName(typeof(FMDepartmentType), first.DEPARTMENT_TYPE);
|
if (first != null)
|
||||||
|
{
|
||||||
|
var level = Enum.GetName(typeof(FMDepartmentType), first?.DEPARTMENT_TYPE);
|
||||||
levelStr.Add(level);
|
levelStr.Add(level);
|
||||||
departIds.Add(first.ID);
|
departIds.Add(first.ID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (levelStr.Any())
|
if (levelStr.Any())
|
||||||
{
|
{
|
||||||
levelStr = levelStr.Distinct().ToList();
|
levelStr = levelStr.Distinct().ToList();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user