46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using Infrastructure;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using OpenAuth.App.ServiceApp.DroneSsnydManage;
|
|
using OpenAuth.App.ServiceApp.DroneSsnydManage.Export;
|
|
|
|
namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|
{
|
|
/// <summary>
|
|
/// 批后监管--s数据统计
|
|
/// </summary>
|
|
[Route("api/[controller]/[action]")]
|
|
[ApiController]
|
|
public class DroneSsnyStatisticsController : ControllerBase
|
|
{
|
|
DroneSsnyStatisticsApp _app;
|
|
public DroneSsnyStatisticsController(DroneSsnyStatisticsApp app)
|
|
{
|
|
_app = app;
|
|
}
|
|
|
|
#region 统计
|
|
/// <summary>
|
|
/// 统计分析
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[AllowAnonymous]
|
|
public Response<List<OffenceResp>> CaseOffenceForSsny(DateTime startTime, DateTime endTime, string tubanlaiyuan)
|
|
{
|
|
Response<List<OffenceResp>> response = new Response<List<OffenceResp>>();
|
|
try
|
|
{
|
|
response = _app.CaseOffence(startTime, endTime, tubanlaiyuan);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
response.Code = 500;
|
|
response.Message = ex.InnerException?.Message ?? ex.Message;
|
|
}
|
|
return response;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|