|
@@ -40,6 +40,10 @@ func Task() {
|
|
|
companyLoss := toolbox.NewTask("companyLoss", "0 20 0 * * *", CompanyLoss)
|
|
|
toolbox.AddTask("companyLoss", companyLoss)
|
|
|
|
|
|
+ //删除日志记录
|
|
|
+ deleteReportSaveLog := toolbox.NewTask("deleteReportSaveLog", "0 20 0 * * *", DeleteReportSaveLog)
|
|
|
+ toolbox.AddTask("deleteReportSaveLog", deleteReportSaveLog)
|
|
|
+
|
|
|
toolbox.StartTask()
|
|
|
//GetHistoryLzProductDetail()
|
|
|
//GetLzPrice()
|
|
@@ -49,6 +53,13 @@ func Task() {
|
|
|
fmt.Println("task end")
|
|
|
}
|
|
|
|
|
|
+func Task123() {
|
|
|
+ fmt.Println("start")
|
|
|
+ //0 42 4 1 * * 毎月1日的 4:42 分 执行
|
|
|
+ DeleteReportSaveLog()
|
|
|
+ fmt.Println("end")
|
|
|
+}
|
|
|
+
|
|
|
func SendEmail() (err error) {
|
|
|
//报告历史访问次数
|
|
|
go ReportViewTimes()
|