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

60 lines
1.8 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;
2025-05-22 17:16:39 +08:00
using OpenAuth.App.ServiceApp.DroneSsnydManage.Request;
using OpenAuth.Repository.Domain;
2025-05-22 16:25:41 +08:00
namespace OpenAuth.WebApi.Controllers.ServiceControllers
{
/// <summary>
2025-05-22 16:34:34 +08:00
/// 批后监管--数据统计
2025-05-22 16:25:41 +08:00
/// </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>
2025-05-24 16:04:45 +08:00
/// <param name="xiangmu_yt">项目名称</param>
2025-05-22 16:25:41 +08:00
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
2025-05-24 15:53:17 +08:00
public Response<List<OffenceResp>> CaseOffenceForSsny(string xiangmu_yt)
2025-05-22 16:25:41 +08:00
{
Response<List<OffenceResp>> response = new Response<List<OffenceResp>>();
try
{
2025-05-24 15:53:17 +08:00
response = _app.CaseOffence(xiangmu_yt);
2025-05-22 16:25:41 +08:00
}
catch (Exception ex)
{
response.Code = 500;
response.Message = ex.InnerException?.Message ?? ex.Message;
}
return response;
}
2025-05-22 17:16:39 +08:00
/// <summary>
/// 获取穿透案件信息
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public async Task<Response<PageInfo<List<QueryCaseOffenceListResp>>>> GetCaseInfo([FromQuery] QueryCaseOffencetReq req)
{
return await _app.GetCaseInfo(req);
}
2025-05-22 16:25:41 +08:00
#endregion
}
}