31 lines
725 B
C#
31 lines
725 B
C#
using System;
|
|
using System.Web.Http;
|
|
using BLL;
|
|
|
|
namespace WebAPI.Controllers.JDGL
|
|
{
|
|
public class SGManPowerController : ApiController
|
|
{
|
|
|
|
/// <summary>
|
|
/// 人力预警
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public Model.ResponeData ManPowerWarning()
|
|
{
|
|
var responeData = new Model.ResponeData();
|
|
try
|
|
{
|
|
responeData = SGManPowerService.CheckAndSendPersonWarning();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
responeData.code = 0;
|
|
responeData.message = ex.ToString();
|
|
}
|
|
return responeData;
|
|
}
|
|
|
|
}
|
|
} |