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
4ad7fbc0
Commit
4ad7fbc0
authored
Sep 09, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/绩效汇报表' into develop
parents
f9e57df7
b8c28b86
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
138 additions
and
5 deletions
+138
-5
performance/Performance.Api/Controllers/ReportController.cs
+35
-3
performance/Performance.Api/wwwroot/Performance.Api.xml
+10
-2
performance/Performance.DtoModels/Request/ConditionRequest.cs
+93
-0
performance/Performance.Services/ReportService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
4ad7fbc0
...
@@ -219,20 +219,51 @@ public ApiResponse MenuReport([CustomizeValidator(RuleSet = "Menu"), FromBody] R
...
@@ -219,20 +219,51 @@ public ApiResponse MenuReport([CustomizeValidator(RuleSet = "Menu"), FromBody] R
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
}
}
/// <summary>
/// 菜单报表
/// 菜单报表
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"operation"
)]
[
Route
(
"operation"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
Operation
([
FromBody
]
ReportRequest
request
)
public
ApiResponse
Operation
([
FromBody
]
ReportRequest
request
)
{
{
if
(
request
==
null
)
if
(
request
==
null
)
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误!"
);
return
new
ApiResponse
(
ResponseType
.
Fail
,
"参数错误!"
);
var
list
=
reportService
.
Operation
(
request
);
var
list
=
reportService
.
Operation
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
}
}
/// <summary>
/// 绩效汇报表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"table/normal"
)]
[
HttpPost
]
public
ApiResponse
TableNormal
([
FromBody
]
ConditionRequest
request
)
{
if
(
request
==
null
)
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
new
TableData
());
var
list
=
reportService
.
TableNormal
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
}
/// <summary>
/// 科室绩效对比
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"table/special"
)]
[
HttpPost
]
public
ApiResponse
TableSpecial
([
FromBody
]
ConditionRequest
request
)
{
if
(
request
==
null
)
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
new
TableData
());
var
list
=
reportService
.
TableSpecial
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
}
}
}
}
}
\ No newline at end of file
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
4ad7fbc0
...
@@ -1455,9 +1455,17 @@
...
@@ -1455,9 +1455,17 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.ReportController.Operation(Performance.DtoModels.ReportRequest)"
>
<!-- Badly formed XML comment ignored for member "M:Performance.Api.Controllers.ReportController.Operation(Performance.DtoModels.ReportRequest)" -->
<member
name=
"M:Performance.Api.Controllers.ReportController.TableNormal(Performance.DtoModels.ConditionRequest)"
>
<summary>
<summary>
菜单报表
绩效汇报表
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ReportController.TableSpecial(Performance.DtoModels.ConditionRequest)"
>
<summary>
科室绩效对比
</summary>
</summary>
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
...
...
performance/Performance.DtoModels/Request/ConditionRequest.cs
0 → 100644
View file @
4ad7fbc0
using
Newtonsoft.Json.Linq
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Performance.DtoModels
{
public
class
ConditionRequest
{
public
int
HospitalId
{
get
;
set
;
}
public
int
ReportId
{
get
;
set
;
}
public
int
[]
Year
{
get
;
set
;
}
public
int
[]
Month
{
get
;
set
;
}
public
string
[]
AccountingUnit
{
get
;
set
;
}
public
string
[]
UnitType
{
get
;
set
;
}
}
public
class
Condition
{
public
int
Year
{
get
;
set
;
}
public
int
Month
{
get
;
set
;
}
public
string
AccountingUnit
{
get
;
set
;
}
public
string
UnitType
{
get
;
set
;
}
}
public
class
TableData
{
public
List
<
Column
>
Columns
{
get
;
set
;
}
public
JArray
Data
{
get
;
set
;
}
}
public
class
Column
{
public
string
Label
{
get
;
set
;
}
public
string
Prop
{
get
;
set
;
}
public
List
<
Column
>
Children
{
get
;
set
;
}
}
public
class
QueryData
{
public
int
HospitalId
{
get
;
set
;
}
public
int
Year
{
get
;
set
;
}
public
int
Month
{
get
;
set
;
}
public
string
AccountingUnit
{
get
;
set
;
}
public
string
UnitType
{
get
;
set
;
}
public
string
SourceType
{
get
;
set
;
}
public
string
Category
{
get
;
set
;
}
public
string
ItemName
{
get
;
set
;
}
public
decimal
?
Value
{
get
;
set
;
}
public
List
<
QueryData
>
Children
{
get
;
set
;
}
}
public
class
QueryResult
{
public
string
Fixed1
{
get
;
set
;
}
public
string
Fixed2
{
get
;
set
;
}
public
string
Fixed3
{
get
;
set
;
}
public
string
Fixed4
{
get
;
set
;
}
public
string
Fixed5
{
get
;
set
;
}
public
string
Column1
{
get
;
set
;
}
public
string
Column2
{
get
;
set
;
}
public
string
Column3
{
get
;
set
;
}
public
decimal
?
Value
{
get
;
set
;
}
}
}
performance/Performance.Services/ReportService.cs
View file @
4ad7fbc0
This diff is collapsed.
Click to expand it.
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