lanlingxian_ziranziyuanhegu.../OpenAuth.WebApi/Controllers/ServiceControllers/DroneSsnyStatisticsControll...

46 lines
1.3 KiB
C#
Raw Normal View History

2025-05-22 16:25:41 +08:00
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>
2025-05-22 16:29:00 +08:00
/// 统计分析
2025-05-22 16:25:41 +08:00
/// </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
}
}