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
79811453
Commit
79811453
authored
Sep 26, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保底绩效配置列表更改; 科室绩效详情 bug修改
parent
a15e5e62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
5 deletions
+73
-5
performance/Performance.Api/Controllers/GuaranteeController.cs
+3
-3
performance/Performance.DtoModels/Response/GuaranteeResponse.cs
+41
-0
performance/Performance.Services/ComputeService.cs
+3
-2
performance/Performance.Services/GuaranteeService.cs
+26
-0
No files found.
performance/Performance.Api/Controllers/GuaranteeController.cs
View file @
79811453
...
@@ -27,10 +27,10 @@ public GuaranteeController(GuaranteeService guaranteeService)
...
@@ -27,10 +27,10 @@ public GuaranteeController(GuaranteeService guaranteeService)
/// <returns></returns>
/// <returns></returns>
[
Route
(
"list"
)]
[
Route
(
"list"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
cof_guarante
e
>>
Guarantee
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
GuaranteeRequest
request
)
public
ApiResponse
<
List
<
GuaranteeRespons
e
>>
Guarantee
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
GuaranteeRequest
request
)
{
{
var
list
=
guaranteeService
.
Guaran
t
ee
(
request
.
AllotId
);
var
list
=
guaranteeService
.
Guaran
Tr
ee
(
request
.
AllotId
);
return
new
ApiResponse
<
List
<
cof_guarante
e
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
<
List
<
GuaranteeRespons
e
>>(
ResponseType
.
OK
,
"ok"
,
list
);
}
}
/// <summary>
/// <summary>
...
...
performance/Performance.DtoModels/Response/GuaranteeResponse.cs
0 → 100644
View file @
79811453
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
GuaranteeResponse
{
/// <summary>
///
/// </summary>
public
Nullable
<
int
>
AllotId
{
get
;
set
;
}
/// <summary>
/// 优先级
/// </summary>
public
Nullable
<
int
>
Priority
{
get
;
set
;
}
/// <summary>
/// 核算单元类型 1 医生组 2 护理组 3 医技组
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 保底科室
/// </summary>
public
string
Target
{
get
;
set
;
}
/// <summary>
/// 保底来源科室
/// </summary>
public
List
<
GuaranItems
>
Source
{
get
;
set
;
}
}
public
class
GuaranItems
{
public
int
GId
{
get
;
set
;
}
public
string
GValue
{
get
;
set
;
}
}
}
performance/Performance.Services/ComputeService.cs
View file @
79811453
...
@@ -310,15 +310,16 @@ public DeptDataDetails DeptDetail(int allotId, int accountId, int type)
...
@@ -310,15 +310,16 @@ public DeptDataDetails DeptDetail(int allotId, int accountId, int type)
{
{
var
sheetType
=
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
};
var
sheetType
=
new
List
<
int
>
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
};
var
doctor
=
perforResaccountRepository
.
GetEntity
(
t
=>
t
.
UnitType
==
type
&&
t
.
AllotID
==
allotId
&&
t
.
ID
==
accountId
);
var
doctor
=
perforResaccountRepository
.
GetEntity
(
t
=>
t
.
UnitType
==
type
&&
t
.
AllotID
==
allotId
&&
t
.
ID
==
accountId
);
string
typeValue
=
EnumHelper
.
GetItems
<
UnitType
>().
FirstOrDefault
(
t
=>
t
.
Value
==
type
).
Name
.
ToString
();
DeptDataDetails
deptDetails
=
new
DeptDataDetails
DeptDataDetails
deptDetails
=
new
DeptDataDetails
{
{
Pandect
=
Mapper
.
Map
<
PerDataAccountBaisc
>(
doctor
),
Pandect
=
Mapper
.
Map
<
PerDataAccountBaisc
>(
doctor
),
Detail
=
new
List
<
DetailDtos
>()
Detail
=
new
List
<
DetailDtos
>()
};
};
if
(
type
==
(
int
)
UnitType
.
专家组
||
type
==
(
int
)
UnitType
.
其他组
)
type
=
1
;
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
UnitType
==
type
&&
t
.
AccountingUnit
==
doctor
.
AccountingUnit
);
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
UnitType
==
type
&&
t
.
AccountingUnit
==
doctor
.
AccountingUnit
);
var
persheet
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
var
persheet
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
string
typeValue
=
EnumHelper
.
GetItems
<
UnitType
>().
FirstOrDefault
(
t
=>
t
.
Value
==
type
).
Name
.
ToString
();
//科室经济
//科室经济
var
sheetEconomic
=
persheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
ComputeEconomic
);
var
sheetEconomic
=
persheet
.
FirstOrDefault
(
t
=>
t
.
SheetType
==
(
int
)
SheetType
.
ComputeEconomic
);
...
...
performance/Performance.Services/GuaranteeService.cs
View file @
79811453
...
@@ -37,6 +37,32 @@ public List<cof_guarantee> Guarantee(int allotId)
...
@@ -37,6 +37,32 @@ public List<cof_guarantee> Guarantee(int allotId)
}
}
/// <summary>
/// <summary>
/// 保底绩效配置列表
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
public
List
<
GuaranteeResponse
>
GuaranTree
(
int
allotId
)
{
var
list
=
perforCofguaranteeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
if
(
list
!=
null
&&
list
.
Any
())
{
var
group
=
list
.
Where
(
t
=>
!
string
.
IsNullOrEmpty
(
t
.
Target
)
&&
!
string
.
IsNullOrEmpty
(
t
.
Source
))
.
GroupBy
(
t
=>
new
{
t
.
UnitType
,
t
.
Target
})
.
Select
(
g
=>
new
GuaranteeResponse
{
AllotId
=
allotId
,
Target
=
g
.
Key
.
Target
,
Source
=
g
.
Select
(
t
=>
new
GuaranItems
{
GId
=
t
.
Id
,
GValue
=
t
.
Source
}).
ToList
(),
Priority
=
g
.
Min
(
m
=>
m
.
Priority
.
Value
),
UnitType
=
((
UnitType
)
g
.
Key
.
UnitType
.
Value
).
ToString
()
}).
OrderBy
(
t
=>
t
.
UnitType
).
ThenBy
(
t
=>
t
.
Priority
).
ToList
();
return
group
;
}
return
new
List
<
GuaranteeResponse
>();
}
/// <summary>
/// 新增保底绩效配置
/// 新增保底绩效配置
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
...
...
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