SGGL_SGY/SUBQHSE/WebAPI/Controllers/HSSE/ConstructionRiskController.cs

45 lines
1.1 KiB
C#
Raw Normal View History

2025-02-19 15:58:42 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using BLL;
2025-05-08 14:26:36 +08:00
using Model;
using Newtonsoft.Json;
2025-02-19 15:58:42 +08:00
namespace WebAPI.Controllers
{
2025-05-08 14:26:36 +08:00
/// <summary>
/// 施工作业风险
/// </summary>
public class ConstructionRiskController : ApiController
2025-02-19 15:58:42 +08:00
{
2025-05-08 14:26:36 +08:00
#region
2025-02-19 15:58:42 +08:00
/// <summary>
2025-05-08 14:26:36 +08:00
/// 推送施工作业风险数据
2025-02-19 15:58:42 +08:00
/// </summary>
2025-05-08 14:26:36 +08:00
/// <returns></returns>
2025-02-19 15:58:42 +08:00
[HttpPost]
2025-05-08 14:26:36 +08:00
public Model.ResponeData PushConstructionRiskSync()
2025-02-19 15:58:42 +08:00
{
var responeData = new Model.ResponeData();
try
{
2025-05-08 14:26:36 +08:00
var returndata = ConstructionRiskListService.PushConstructionRisk();
responeData.code = returndata.code;
responeData.message = returndata.message;
2025-02-19 15:58:42 +08:00
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
2025-05-08 14:26:36 +08:00
2025-02-19 15:58:42 +08:00
#endregion
}
2025-05-08 14:26:36 +08:00
}