This commit is contained in:
2025-06-24 11:35:27 +08:00
parent 85874b9916
commit 7795cf25f5
+7 -6
View File
@@ -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