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
7289fd1c
Commit
7289fd1c
authored
Sep 27, 2022
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室字典修改
parent
3df483a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
performance/Performance.Api/Controllers/PersonController.cs
+1
-1
performance/Performance.Services/PersonService.cs
+5
-4
No files found.
performance/Performance.Api/Controllers/PersonController.cs
View file @
7289fd1c
...
@@ -135,7 +135,7 @@ public IActionResult DownloadCurrentCalculationTable([FromRoute] int allotId)
...
@@ -135,7 +135,7 @@ public IActionResult DownloadCurrentCalculationTable([FromRoute] int allotId)
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
GetDepartments
(
int
hospitalId
)
public
ApiResponse
GetDepartments
(
int
hospitalId
)
{
{
var
list
=
personService
.
GetDepartments
(
hospitalId
);
var
list
=
personService
.
GetDepartments
(
hospitalId
,
isDefault
:
false
);
return
new
ApiResponse
(
ResponseType
.
OK
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
list
);
}
}
...
...
performance/Performance.Services/PersonService.cs
View file @
7289fd1c
...
@@ -420,16 +420,17 @@ private void CheckAccountingDept(int hosapitalId, string accountingUnit, string
...
@@ -420,16 +420,17 @@ private void CheckAccountingDept(int hosapitalId, string accountingUnit, string
/// 获取给医院所有的
/// 获取给医院所有的
/// </summary>
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="hospitalId"></param>
/// <param name="isDefault">未true时住院不存在则默认门诊</param>
/// <returns></returns>
/// <returns></returns>
public
IEnumerable
<
DeptdicResponse
>
GetDepartments
(
int
hospitalId
)
public
IEnumerable
<
DeptdicResponse
>
GetDepartments
(
int
hospitalId
,
bool
isDefault
=
true
)
{
{
var
depts
=
perdeptdicRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
var
depts
=
perdeptdicRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
);
if
(
depts
==
null
||
!
depts
.
Any
())
return
null
;
if
(
depts
==
null
||
!
depts
.
Any
())
return
null
;
Deptdic
GetDeptdic
(
List
<
per_dept_dic
>
dics
,
string
department
,
string
hISDeptName
,
UnitType
unitType
,
string
source
=
""
)
Deptdic
GetDeptdic
(
List
<
per_dept_dic
>
dics
,
string
department
,
string
hISDeptName
,
UnitType
unitType
,
string
source
=
null
)
{
{
var
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
()
&&
group
.
Source
==
source
);
var
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
()
&&
group
.
Source
==
source
);
if
(
dic
==
null
)
if
(
dic
==
null
&&
isDefault
)
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
());
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
());
if
(
dic
==
null
)
return
new
Deptdic
()
{
IsVerify
=
1
};
if
(
dic
==
null
)
return
new
Deptdic
()
{
IsVerify
=
1
};
return
new
Deptdic
{
Id
=
dic
.
Id
,
AccountingUnit
=
dic
.
AccountingUnit
,
IsVerify
=
dic
.
IsVerify
??
1
,
VerifyMessage
=
dic
.
VerifyMessage
,
};
return
new
Deptdic
{
Id
=
dic
.
Id
,
AccountingUnit
=
dic
.
AccountingUnit
,
IsVerify
=
dic
.
IsVerify
??
1
,
VerifyMessage
=
dic
.
VerifyMessage
,
};
...
@@ -1019,7 +1020,7 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
...
@@ -1019,7 +1020,7 @@ private void DeptDicList(int HospitalId, List<per_dept_dic> deptDics, DeptdicHan
Department
=
data
.
Department
?.
Trim
(),
Department
=
data
.
Department
?.
Trim
(),
HISDeptName
=
data
.
HISDeptName
?.
Trim
(),
HISDeptName
=
data
.
HISDeptName
?.
Trim
(),
CreateTime
=
nowTime
,
CreateTime
=
nowTime
,
AccountingUnit
=
data
.
Logistics
Accounting
?.
Trim
(),
AccountingUnit
=
data
.
Special
Accounting
?.
Trim
(),
UnitType
=
"特殊核算组"
UnitType
=
"特殊核算组"
};
};
deptDics
.
Add
(
deptDic
);
deptDics
.
Add
(
deptDic
);
...
...
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