11212121
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace WebApi.Controllers
|
||||
{
|
||||
public class TaskController: ApiController
|
||||
{
|
||||
[HttpGet]
|
||||
public Model.ResponeData GetNDEAuditEmailTemplate()
|
||||
{
|
||||
var model=new Model.ResponeData();
|
||||
|
||||
try
|
||||
{
|
||||
//定时任务跑 监理 未审核的点口邮件
|
||||
BLL.TaskScheduleService.GetNDEAuditEmailTemplate(1);
|
||||
//定时任务跑 管理公司 未审核的点口邮件
|
||||
BLL.TaskScheduleService.GetNDEAuditEmailTemplate(2);
|
||||
model.code = 200;
|
||||
model.message = "OK";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
BLL.ErrLogInfo.WriteLog(ex, "The scheduled task failed to run the unaudited point-of-mail. Procedure");
|
||||
model.code=500;
|
||||
model.message = "Error";
|
||||
}
|
||||
return model;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user