Commit 541d4589 by 1391696987

删除历史记录接口

parent 6837f55e
......@@ -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>
......
......@@ -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>
查询报表结果
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment