39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using BLL;
|
|
using Model;
|
|
using System;
|
|
using System.Web.Http;
|
|
|
|
namespace WebAPI.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 关键事项
|
|
/// </summary>
|
|
public class GJSXController : ApiController
|
|
{
|
|
/// <summary>
|
|
/// 关键事项超期预警定时提醒发送邮箱
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public Model.ResponeData OverdueWarningSendEmail()
|
|
{
|
|
var responeData = new Model.ResponeData();
|
|
try
|
|
{
|
|
//获取公司发送者邮箱配置
|
|
Email_Pop pops = BLL.Email_PopService.GetEmail_Pop("7EC5E991-B7A0-495A-90ED-2BE15370C959");
|
|
if (pops != null)
|
|
{
|
|
GJSXMonitorService.OverdueWarningSendEmail();
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
responeData.code = 0;
|
|
responeData.message = ex.ToString();
|
|
}
|
|
return responeData;
|
|
}
|
|
|
|
}
|
|
} |