1
This commit is contained in:
@@ -197,12 +197,13 @@ namespace BLL
|
||||
public static List<string> GetChildrenUnitId(string unitId)
|
||||
{
|
||||
List<string> unitIdList = new List<string>();
|
||||
var unit = Funs.DB.Base_Unit.FirstOrDefault(e => e.IsBranch == true); //本单位
|
||||
if (unit != null)
|
||||
{
|
||||
unitIdList.Add(unit.UnitId);
|
||||
GetChildrenUnitId(unit.UnitId);
|
||||
}
|
||||
unitIdList = (from x in Funs.DB.Base_Unit where x.IsBranch == true select x.UnitId).ToList();
|
||||
//var unit = Funs.DB.Base_Unit.FirstOrDefault(e => e.IsBranch == true); //本单位
|
||||
//if (unit != null)
|
||||
//{
|
||||
// unitIdList.Add(unit.UnitId);
|
||||
// GetChildrenUnitId(unit.UnitId);
|
||||
//}
|
||||
return unitIdList;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user