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
04eeef60
Commit
04eeef60
authored
Sep 14, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取科室字典
parent
d4bd9f65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
performance/Performance.Api/Controllers/PersonController.cs
+2
-2
performance/Performance.Services/PersonService.cs
+9
-1
No files found.
performance/Performance.Api/Controllers/PersonController.cs
View file @
04eeef60
...
...
@@ -145,13 +145,13 @@ public ApiResponse DeleteDeptDic([FromBody] DeptdicResponse request)
/// 系统/标准科室字典
/// </summary>
/// <param name="hospitalId">医院Id</param>
/// <param name="type">1系统科室 2标准科室 3核算单元</param>
/// <param name="type">1系统科室 2标准科室 3核算单元
4行政后勤 5特殊核算组
</param>
/// <returns></returns>
[
Route
(
"deptdic/{hospitalId}/dict/{type}"
)]
[
HttpPost
]
public
ApiResponse
DeptDics
(
int
hospitalId
,
int
type
)
{
if
(!
new
int
[]
{
1
,
2
,
3
}.
Contains
(
type
))
if
(!
new
int
[]
{
1
,
2
,
3
,
4
,
5
}.
Contains
(
type
))
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数错误!"
);
var
result
=
personService
.
DeptDics
(
hospitalId
,
type
);
...
...
performance/Performance.Services/PersonService.cs
View file @
04eeef60
...
...
@@ -460,7 +460,15 @@ public List<TitleValue> DeptDics(int hospitalId, int type)
}
else
if
(
type
==
3
)
{
result
=
deptdics
.
Select
(
t
=>
t
.
AccountingUnit
).
Distinct
().
ToList
();
result
=
deptdics
.
Where
(
t
=>
!
new
string
[]
{
UnitType
.
行政后勤
.
ToString
(),
UnitType
.
特殊核算组
.
ToString
()
}.
Contains
(
t
.
UnitType
)).
Select
(
t
=>
t
.
AccountingUnit
).
Distinct
().
ToList
();
}
else
if
(
type
==
4
)
{
result
=
deptdics
.
Where
(
t
=>
t
.
UnitType
==
UnitType
.
行政后勤
.
ToString
()).
Select
(
t
=>
t
.
AccountingUnit
).
Distinct
().
ToList
();
}
else
if
(
type
==
5
)
{
result
=
deptdics
.
Where
(
t
=>
t
.
UnitType
==
UnitType
.
特殊核算组
.
ToString
()).
Select
(
t
=>
t
.
AccountingUnit
).
Distinct
().
ToList
();
}
return
result
.
Select
(
t
=>
new
TitleValue
{
Title
=
t
,
Value
=
t
}).
ToList
();
}
...
...
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