public ActionResult ReportGenerate() { WechatFollowReportType result = WechatFollowReportCommon.WechatFollowReportWork(AccountManageID); if (result == WechatFollowReportType.Success) { return(SuccessNotification("数据统计成功!")); } else if (result == WechatFollowReportType.AlreadyCreated) { return(ErrorNotification("今天已经进行过统计,请明天再试!")); } else { return(ErrorNotification("系统发生错误!无法进行统计!")); } }
public void Execute() { try { string dateTimeFormat = "HH:mm:ss"; DateTime dtNow = Convert.ToDateTime(DateTime.Now.ToString(dateTimeFormat)); DateTime dtStandard = Convert.ToDateTime(jobExecuteTime); if (dtNow < dtStandard) { return; } WechatFollowReportType result = WechatFollowReportCommon.WechatFollowReportWork(); } catch (Exception ex) { LogManager.GetLogger(this.GetType()).Error("WechatFollowReport Error", ex); } }