2025-05-20 16:00:02 +08:00
|
|
|
|
using Infrastructure;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using OpenAuth.App.ServiceApp.DroneSsnydManage;
|
2025-05-21 14:09:24 +08:00
|
|
|
|
using OpenAuth.App.ServiceApp.DroneSsnydManage.Request;
|
2025-05-20 16:00:02 +08:00
|
|
|
|
using OpenAuth.Repository.Domain;
|
|
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批后监管--项目信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
|
|
|
|
[ApiController]
|
|
|
|
|
|
public class DroneSsnyController : ControllerBase
|
|
|
|
|
|
{
|
|
|
|
|
|
DroneSsnyApp droneSsnyApp;
|
2025-05-21 14:09:24 +08:00
|
|
|
|
|
2025-05-20 16:00:02 +08:00
|
|
|
|
public DroneSsnyController(DroneSsnyApp droneSsnyApp)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.droneSsnyApp = droneSsnyApp;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-05-20 17:20:40 +08:00
|
|
|
|
/// 到期预警
|
2025-05-20 16:00:02 +08:00
|
|
|
|
/// </summary>
|
2025-05-21 16:03:36 +08:00
|
|
|
|
/// <param name="xiangmumc">项目名称</param>
|
|
|
|
|
|
/// <param name="countyid">县</param>
|
|
|
|
|
|
/// <param name="streetid">镇</param>
|
2025-05-20 16:00:02 +08:00
|
|
|
|
/// <param name="pageIndex"></param>
|
|
|
|
|
|
/// <param name="pageSize"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet]
|
2025-05-21 16:03:36 +08:00
|
|
|
|
public Response<PageInfo<List<DroneSsnyd>>> TimeoutWarning(string xiangmumc, string countyid, string streetid, int page, int limit)
|
2025-05-20 16:00:02 +08:00
|
|
|
|
{
|
|
|
|
|
|
var response = new Response<PageInfo<List<DroneSsnyd>>>();
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
2025-05-21 16:03:36 +08:00
|
|
|
|
response.Result = droneSsnyApp.TimeoutWarning(xiangmumc, countyid, streetid,page, limit);
|
2025-05-20 16:00:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
{
|
|
|
|
|
|
response.Code = 500;
|
|
|
|
|
|
response.Message = ex.InnerException?.Message ?? ex.Message;
|
|
|
|
|
|
}
|
2025-05-21 14:09:24 +08:00
|
|
|
|
|
2025-05-20 16:00:02 +08:00
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 超期报警
|
|
|
|
|
|
/// </summary>
|
2025-05-21 16:03:36 +08:00
|
|
|
|
/// <param name="xiangmumc">项目名称</param>
|
|
|
|
|
|
/// <param name="countyid">县</param>
|
|
|
|
|
|
/// <param name="streetid">镇</param>
|
2025-05-20 16:00:02 +08:00
|
|
|
|
/// <param name="pageIndex"></param>
|
|
|
|
|
|
/// <param name="pageSize"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet]
|
2025-05-21 16:03:36 +08:00
|
|
|
|
public Response<PageInfo<List<DroneSsnyd>>> TimeOutAlarmList(string xiangmumc, string countyid,string streetid,int page, int limit)
|
2025-05-20 16:00:02 +08:00
|
|
|
|
{
|
|
|
|
|
|
var response = new Response<PageInfo<List<DroneSsnyd>>>();
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
2025-05-21 16:03:36 +08:00
|
|
|
|
response.Result = droneSsnyApp.TimeOutAlarmList(xiangmumc, countyid, streetid, page, limit);
|
2025-05-20 16:00:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
{
|
|
|
|
|
|
response.Code = 500;
|
|
|
|
|
|
response.Message = ex.InnerException?.Message ?? ex.Message;
|
|
|
|
|
|
}
|
2025-05-21 14:09:24 +08:00
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 历史项目
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
|
public Response<PageInfo<List<DroneSsnyd>>> HistoryProject(DroneSnnyAppPageReq req)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = new Response<PageInfo<List<DroneSsnyd>>>();
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
response.Result = droneSsnyApp.HistoryProject(req);
|
|
|
|
|
|
}
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
{
|
|
|
|
|
|
response.Code = 500;
|
|
|
|
|
|
response.Message = ex.InnerException?.Message ?? ex.Message;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 项目变更列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
|
public Response<PageInfo<List<DroneSsnyd>>> ProjectChange(DroneSnnyAppPageReq req)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = new Response<PageInfo<List<DroneSsnyd>>>();
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
response.Result = droneSsnyApp.ProjectChange(req);
|
|
|
|
|
|
}
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
{
|
|
|
|
|
|
response.Code = 500;
|
|
|
|
|
|
response.Message = ex.InnerException?.Message ?? ex.Message;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-05-20 16:00:02 +08:00
|
|
|
|
return response;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-05-21 14:09:24 +08:00
|
|
|
|
}
|