sunpengfei
2025-08-12 6f8074a182c9ee36c9972935b4442ef70711b465
fix:bug
2个文件已修改
13 ■■■■ 已修改文件
FlexJobApi.CommonServer.Application/Dictionaries/Queries/DictionaryDatasQueryHandler.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
FlexJobApi.Core/Models/CommonServer/Dictionaries/Queries/GetDictionaryDataSelectQuery.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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