Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
75c15689
Commit
75c15689
authored
Jun 08, 2023
by
wyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室详情别名去空
parent
fe3a1bb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
+2
-3
No files found.
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
View file @
75c15689
...
@@ -411,8 +411,7 @@ void RecursionUseSettings(List<DeptDetailItem> detailItems, List<UniteDeptDetail
...
@@ -411,8 +411,7 @@ void RecursionUseSettings(List<DeptDetailItem> detailItems, List<UniteDeptDetail
detail
.
Display
=
false
;
detail
.
Display
=
false
;
}
}
}
}
detail
.
Title
=
string
.
IsNullOrEmpty
(
cfg
?.
Alias
?.
Trim
())
?
detail
.
Title
:
cfg
?.
Alias
?.
Trim
();
detail
.
Title
=
string
.
IsNullOrEmpty
(
cfg
?.
Alias
.
Trim
())
?
detail
.
Title
:
cfg
?.
Alias
.
Trim
();
// Item里面需要隐藏和格式化的操作
// Item里面需要隐藏和格式化的操作
if
(
detail
.
Children
?.
Any
()
!=
true
&&
detail
.
Items
?.
Any
()
==
true
&&
cfg
?.
Children
?.
Any
()
==
true
)
if
(
detail
.
Children
?.
Any
()
!=
true
&&
detail
.
Items
?.
Any
()
==
true
&&
cfg
?.
Children
?.
Any
()
==
true
)
{
{
...
@@ -721,7 +720,7 @@ void InitRecursion(List<UniteDeptDetailItem> detailItems, string parentId)
...
@@ -721,7 +720,7 @@ void InitRecursion(List<UniteDeptDetailItem> detailItems, string parentId)
detail
.
Id
=
SnowFlake
.
GetInstance
().
GetLongId
().
ToString
();
detail
.
Id
=
SnowFlake
.
GetInstance
().
GetLongId
().
ToString
();
detail
.
ParentId
=
parentId
;
detail
.
ParentId
=
parentId
;
detail
.
Display
=
UniteDept
.
DisplayRule
.
始终显示
.
ToString
();
detail
.
Display
=
UniteDept
.
DisplayRule
.
始终显示
.
ToString
();
detail
.
IsAllowAlias
=
detail
.
Children
?.
Any
()
==
true
;
detail
.
IsAllowAlias
=
string
.
IsNullOrEmpty
(
parentId
)
||
detail
.
Children
?.
Any
()
==
true
;
detail
.
Children
??=
new
List
<
UniteDeptDetailItem
>();
detail
.
Children
??=
new
List
<
UniteDeptDetailItem
>();
InitRecursion
(
detail
.
Children
,
detail
.
Id
);
InitRecursion
(
detail
.
Children
,
detail
.
Id
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment