修正email

This commit is contained in:
b110212000 2021-08-02 16:26:03 +08:00
parent bfc4b2ca30
commit 5a363cb54e

View File

@ -77,7 +77,7 @@ namespace SolarPower.Quartz.Jobs
};
await noticeScheduleRepository.AddOneAsync(DaySchedule, properties);
}
if(DateTime.Now.ToString("dd")=="02")
if(DateTime.Now.ToString("dd")=="01")
{
List<Excelpowerstation> sentmonthpowerstations = powerstations.Where(x => x.EmailMonthReport == 1).Select(a => new Excelpowerstation { Name = a.Name, Value = a.PowerStationId.ToString() }).ToList();
if(sentmonthpowerstations.Count == 0)
@ -89,7 +89,7 @@ namespace SolarPower.Quartz.Jobs
FormType = 1,
PowerStation = sentmonthpowerstations,
SearchType = 2,
Time = DateTime.Now.AddDays(-2).ToString("yyyy-MM"),
Time = DateTime.Now.AddDays(-1).ToString("yyyy-MM"),
Userid = user.Id
};
var stationReportmonthName = stationReportController.ExportExcelBackDownload(JsonConvert.SerializeObject(monthexcel, Formatting.Indented));