|
@@ -2,26 +2,27 @@ package services
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
+ "github.com/astaxie/beego/toolbox"
|
|
|
)
|
|
|
|
|
|
func Task() {
|
|
|
fmt.Println("task start")
|
|
|
//发送邮件
|
|
|
- //sendEmail := toolbox.NewTask("sendEmail", "0 0 12 * * 0 ", SendEmail)
|
|
|
- //toolbox.AddTask("sendEmail", sendEmail)
|
|
|
+ sendEmail := toolbox.NewTask("sendEmail", "0 0 12 * * 0 ", SendEmail)
|
|
|
+ toolbox.AddTask("sendEmail", sendEmail)
|
|
|
|
|
|
- //oneMinute := toolbox.NewTask("oneMinute", "0 */1 7-23 * * * ", OneMinute)
|
|
|
- //toolbox.AddTask("oneMinute", oneMinute)
|
|
|
+ oneMinute := toolbox.NewTask("oneMinute", "0 */1 7-23 * * * ", OneMinute)
|
|
|
+ toolbox.AddTask("oneMinute", oneMinute)
|
|
|
|
|
|
//隆众指标获取
|
|
|
- //getLzProductList := toolbox.NewTask("getLzProductList", "0 0 11-19/1 * * * ", GetLzProductList)
|
|
|
- //toolbox.AddTask("getLzProductList", getLzProductList)
|
|
|
+ getLzProductList := toolbox.NewTask("getLzProductList", "0 0 11-19/1 * * * ", GetLzProductList)
|
|
|
+ toolbox.AddTask("getLzProductList", getLzProductList)
|
|
|
//隆众指标数据获取
|
|
|
- //getLzProductDetail := toolbox.NewTask("getLzProductDetail", "0 5 11-19/1 * * * ", GetLzProductDetail)
|
|
|
- //toolbox.AddTask("getLzProductDetail", getLzProductDetail)
|
|
|
+ getLzProductDetail := toolbox.NewTask("getLzProductDetail", "0 5 11-19/1 * * * ", GetLzProductDetail)
|
|
|
+ toolbox.AddTask("getLzProductDetail", getLzProductDetail)
|
|
|
|
|
|
- //toolbox.StartTask()
|
|
|
- GetHistoryLzProductDetail()
|
|
|
+ toolbox.StartTask()
|
|
|
+ //GetHistoryLzProductDetail()
|
|
|
//GetLzPrice()
|
|
|
//GetLzProductDetail()
|
|
|
//LzExportExcel()
|