报表日志

master
wet 2 years ago
parent bef771dd44
commit a3f7f76a9d

@ -243,7 +243,9 @@ namespace djy.Service.Report
#region 定时任务 #region 定时任务
public void TemplateTask() { public void TemplateTask() {
try try
{ ///获取所有订阅过的用户 {
_LogsAdd("TemplateTask", "post", $"报表定时任务开始");
///获取所有订阅过的用户
var datetime = DateTime.Now.AddDays(-1); var datetime = DateTime.Now.AddDays(-1);
var list = DbBus.Get(DbList.DSDB).Select<DS_Report>().Where(x => x.IsBook == true && x.EndTime < datetime).ToList(); var list = DbBus.Get(DbList.DSDB).Select<DS_Report>().Where(x => x.IsBook == true && x.EndTime < datetime).ToList();
var templist = DbBus.Get(DbList.DSDB).Select<DS_ReportTemplate>().ToList(); var templist = DbBus.Get(DbList.DSDB).Select<DS_ReportTemplate>().ToList();

Loading…
Cancel
Save