You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
4.3 KiB
126 lines
4.3 KiB
using Common.Shared.Application.BaseModels; |
|
using Common.Shared.Application.SafetyFirePro.RequestDto; |
|
using Common.Shared.Application.SafetyFirePro.ResponseDto; |
|
using Microsoft.AspNetCore.Authorization; |
|
using Microsoft.AspNetCore.Mvc; |
|
using System.Text.Json; |
|
using ThirdPartyServices.Application.ShenZhouShengAn.RequestDto; |
|
using ThirdPartyServices.DomainService.ShenZhouShengAn; |
|
|
|
namespace ThirdPartyServices.API.Controllers.ShenZhouShengAn |
|
{ |
|
/// <summary> |
|
/// 用于太阳宫看板的综合安全态势模块-神州晟安公司接口 |
|
/// </summary> |
|
[Route("api/[controller]/[action]")] |
|
[ApiController] |
|
public class SunPalaceBoardSafetyController : ControllerBase |
|
{ |
|
private readonly ILogger<SunPalaceBoardSafetyController> _logger; |
|
|
|
private readonly ISunPalaceBoardSafetyService _secSituationService; |
|
|
|
public SunPalaceBoardSafetyController(ILogger<SunPalaceBoardSafetyController> logger, ISunPalaceBoardSafetyService secSituationService) |
|
{ |
|
_logger = logger; |
|
_secSituationService = secSituationService; |
|
} |
|
|
|
/// <summary> |
|
/// 生产风险识别(盾安云数据)智慧建筑的看板上使用 |
|
/// </summary> |
|
/// <returns></returns> |
|
[HttpGet("productionRisk")] |
|
public async Task<ApiResult<DangerRiskAreaResDto>> GetProductionRiskEchart() |
|
{ |
|
return await _secSituationService.GetProductionRiskEchart(); |
|
} |
|
|
|
/// <summary> |
|
/// 获取指定区域ID的隐患数据 |
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
[HttpPost("new/dangerInfo")] |
|
public async Task<ApiResult<DangerInfoRootResDto>> GetDangerInfoEchart(DangerInfoQueryDto dto) |
|
{ |
|
return await _secSituationService.GetDangerInfos(dto); |
|
} |
|
|
|
/// <summary> |
|
///获得四色图图层列表 |
|
/// </summary> |
|
/// <returns></returns> |
|
[HttpGet("listFloor")] |
|
public async Task<ApiResult<FloorResDto>> GetListFloor() |
|
{ |
|
return await _secSituationService.GetListFloor(); |
|
} |
|
|
|
/// <summary> |
|
/// 获得四色图区域列表 |
|
/// </summary> |
|
/// <param name="floorId">图层id</param> |
|
/// <returns></returns> |
|
[HttpGet("getRiskMapInfo")] |
|
public async Task<ApiResult<RootReqDto>> GetRiskMapInfo(int floorId) |
|
{ |
|
return await _secSituationService.GetRiskMapInfo(floorId); |
|
} |
|
|
|
/// <summary> |
|
/// 获得危险作业(施工)数据 |
|
/// </summary> |
|
/// <param name="dto"></param> |
|
/// <returns></returns> |
|
[HttpPost("ledger")] |
|
public async Task<ApiResult<LedgerDto>> GetLedger(WorkTaskQueryParamsDto dto) |
|
{ |
|
return await _secSituationService.GetLedger(dto); |
|
} |
|
|
|
/// <summary> |
|
/// 14、获得隐患详情数据 |
|
/// </summary> |
|
/// <param name="id"></param> |
|
/// <returns></returns> |
|
[HttpPost("GetDangerDetail")] |
|
public async Task<ApiResult<HazardDataDto>> GetDangerDetail(DangerDetailReqDto dto) |
|
{ |
|
return await _secSituationService.GetDangerDetail(dto); |
|
} |
|
|
|
/// <summary> |
|
/// 11、获得危害辨识项目数据 |
|
/// </summary> |
|
/// <returns></returns> |
|
/// <exception cref="NotImplementedException"></exception> |
|
[HttpGet("injure")] |
|
public async Task<ApiResult<List<InjureResDto>>> GetInjureInfo() |
|
{ |
|
return await _secSituationService.GetInjureInfo(); |
|
} |
|
|
|
/// <summary> |
|
/// 得区域(空间)列表树数据 |
|
/// </summary> |
|
/// <returns></returns> |
|
/// <exception cref="NotImplementedException"></exception> |
|
[HttpPost("rootiinfo")] |
|
public async Task<ApiResult<RegionStructureRootDto>> GetRegionRootInfo(RegionRootInfoReqDto dto) |
|
{ |
|
return await _secSituationService.GetRegionRootInfo(dto); |
|
} |
|
|
|
/// <summary> |
|
/// 获得危险作业(施工)数据统计 |
|
/// </summary> |
|
/// <param name="dto"></param> |
|
/// <returns></returns> |
|
[HttpPost("statistics")] |
|
public async Task<ApiResult<List<StatisticsInfoDto>>> GetStatistics(WorkTaskQueryParamsDto dto) |
|
{ |
|
return await _secSituationService.GetStatistics(dto); |
|
} |
|
} |
|
} |