|
@@ -47,10 +47,6 @@ func Task() {
|
|
|
companyReportPermissionClose := task.NewTask("companyReportPermissionClose", "0 35 2 * * *", CompanyReportPermissionClose)
|
|
|
task.AddTask("用户产品权限试用-->关闭", companyReportPermissionClose)
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
stackCompanyStatistic := task.NewTask("stackCompanyStatistic", "0 35 2 * * *", StackCompanyStatistic)
|
|
|
task.AddTask("存量客户数据统计", stackCompanyStatistic)
|
|
@@ -66,11 +62,6 @@ func Task() {
|
|
|
|
|
|
ybSalonRemind := task.NewTask("ybSalonRemind", "0 */1 * * * * ", YbSalonRemind)
|
|
|
task.AddTask("研报沙龙提醒", ybSalonRemind)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
addEdbTask := task.NewTask("sendWaitReport", "1 0 2 * * * ", AddEdbTask)
|
|
@@ -142,9 +133,6 @@ func releaseTask() {
|
|
|
sendEmail := task.NewTask("sendEmail", "0 0 12 * * 0 ", SendEmail)
|
|
|
task.AddTask("sendEmail", sendEmail)
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
companyRemind := task.NewTask("companyRemind", "0 30 08 * * *", CompanyRemind)
|
|
|
task.AddTask("companyRemind", companyRemind)
|
|
@@ -184,19 +172,9 @@ func releaseTask() {
|
|
|
syncThsWxGroupEveryDay := task.NewTask("syncThsWxGroupEveryDay", "0 1 4 * * * ", SyncWxGroupEveryDay)
|
|
|
task.AddTask("定时往同花顺同步微信群的截止日期", syncThsWxGroupEveryDay)
|
|
|
|
|
|
- checkPbDataInterface := task.NewTask("checkPbDataInterface", "0 */2 * * * * ", data.CheckPbDataInterface)
|
|
|
- task.AddTask("checkPbDataInterface", checkPbDataInterface)
|
|
|
-
|
|
|
- checkLtDataInterface := task.NewTask("checkLtDataInterface", "0 */2 * * * * ", data.CheckLtDataInterface)
|
|
|
- task.AddTask("checkLtDataInterface", checkLtDataInterface)
|
|
|
-
|
|
|
-
|
|
|
- checkWindDataInterface := task.NewTask("checkWindDataInterface", "0 */2 * * * * ", data.CheckWindDataInterface)
|
|
|
- task.AddTask("checkWindDataInterface", checkWindDataInterface)
|
|
|
-
|
|
|
-
|
|
|
- checkThsDataInterface := task.NewTask("checkThsDataInterface", "0 */2 * * * * ", data.CheckThsDataInterface)
|
|
|
- task.AddTask("checkThsDataInterface", checkThsDataInterface)
|
|
|
+
|
|
|
+ checkDataServer := task.NewTask("checkDataServer", "0 */2 * * * * ", checkDataServer)
|
|
|
+ task.AddTask("checkDataServer", checkDataServer)
|
|
|
|
|
|
|
|
|
resetEdbInfoIsUpdate := task.NewTask("resetEdbInfoIsUpdate", "0 0 0 * * *", data.ResetEdbInfoIsUpdate)
|
|
@@ -344,30 +322,6 @@ func SyncBaseDataExt(cont context.Context) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-endData:=time.Now().UnixNano()/1e6
|
|
|
- dateTime:=time.Unix(endData/1000,0)
|
|
|
- fmt.Println(dateTime)
|
|
|
-*/
|
|
|
-
|
|
|
|
|
|
var EdbTaskNameMap map[string]map[string]bool
|
|
|
|
|
@@ -815,3 +769,16 @@ func deleteTask() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+func checkDataServer(cont context.Context) (err error){
|
|
|
+
|
|
|
+ go data.CheckWindDataInterface(cont)
|
|
|
+
|
|
|
+ go data.CheckThsDataInterface(cont)
|
|
|
+
|
|
|
+ go data.CheckLtDataInterface(cont)
|
|
|
+
|
|
|
+ go data.CheckPbDataInterface(cont)
|
|
|
+ return
|
|
|
+}
|