sunpengfei
2025-08-28 6ad4db7d45eeaec5617f511010343258f245e5d4
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);