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
541d4589
Commit
541d4589
authored
May 30, 2022
by
1391696987
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除历史记录接口
parent
6837f55e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletions
+28
-1
performance/Performance.Api/Controllers/StatisticsController.cs
+14
-1
performance/Performance.Api/wwwroot/Performance.Api.xml
+7
-0
performance/Performance.Services/StatisticsService.cs
+7
-0
No files found.
performance/Performance.Api/Controllers/StatisticsController.cs
View file @
541d4589
...
...
@@ -55,11 +55,24 @@ public ApiResponse<List<report_statistics_selection_record>> GetSelectionRecord(
[
HttpPost
(
"selection/record/save"
)]
public
ApiResponse
SaveSelectionRecord
([
FromBody
]
report_statistics_selection_record
record
)
{
return
_service
.
SaveSelectionRecord
(
record
);
}
/// <summary>
/// 删除报表查询记录
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[
HttpPost
(
"selection/record/delete"
)]
public
ApiResponse
DeleteSelectionRecord
(
int
id
)
{
if
(
_service
.
DeleteSelectionRecord
(
id
))
return
new
ApiResponse
(
ResponseType
.
OK
,
"删除成功"
);
else
return
new
ApiResponse
(
ResponseType
.
Fail
,
"删除失败"
);
}
/// <summary>
/// 查询报表结果
/// </summary>
/// <returns></returns>
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
541d4589
...
...
@@ -2353,6 +2353,13 @@
</summary>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.StatisticsController.DeleteSelectionRecord(System.Int32)"
>
<summary>
删除报表查询记录
</summary>
<param
name=
"id"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.StatisticsController.Search(Performance.DtoModels.StatisticsQuery)"
>
<summary>
查询报表结果
...
...
performance/Performance.Services/StatisticsService.cs
View file @
541d4589
...
...
@@ -150,6 +150,13 @@ public ApiResponse SaveSelectionRecord(report_statistics_selection_record record
else
return
new
ApiResponse
(
ResponseType
.
Fail
);
}
public
bool
DeleteSelectionRecord
(
int
id
)
{
var
result
=
_reportStatisticsSelectionRecordRepository
.
GetEntity
(
t
=>
t
.
ID
==
id
);
return
_reportStatisticsSelectionRecordRepository
.
Remove
(
result
);
}
public
StatisticsQueryResultDto
Search
(
StatisticsQuery
query
)
{
var
reportStatistics
=
_reportStatisticsRepository
.
GetEntity
(
t
=>
t
.
ID
==
query
.
StatisticsID
&&
t
.
HospitalId
==
query
.
HospitalID
);
...
...
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