FlexJobApi.CommonServer.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs
@@ -81,7 +81,14 @@ WHERE d.IsDisabled = 0"; if (request.All != true) { sql += " AND d.ParentId = @ParentId"; if (request.ParentId == null) { sql += " AND d.ParentId IS NULL"; } else { sql += " AND d.ParentId = @ParentId"; } } if (request.MaxDeep.HasValue) { @@ -120,7 +127,7 @@ option.Label = model.Content; options.Add(option); } if (request.WithChildren) if (request.WithChildren == true) { var parents = options.Where(it => it.Data.ParentId == null).ToList(); LoopChildrens(parents, options); FlexJobApi.Core/Models/CommonServer/Dictionaries/Queries/GetDictionaryDataSelectQuery.cs
@@ -46,7 +46,7 @@ /// <summary> /// 携带下级 /// </summary> public bool WithChildren { get; set; } public bool? WithChildren { get; set; } } public class GetDictionaryDataSelectQueryResultOption