|
@@ -122,7 +122,7 @@ func Task() {
|
|
|
task.AddTask("定时发布研报语音播报", publishVoiceBroadcast)
|
|
|
|
|
|
|
|
|
- cygxResearchSummary := task.NewTask("cygxResearchSummary", "0 0 10 * * 5", CygxResearchSummary)
|
|
|
+ cygxResearchSummary := task.NewTask("cygxResearchSummary", "0 0 15 * * 5", CygxResearchSummary)
|
|
|
task.AddTask("定时生成本周研究汇总", cygxResearchSummary)
|
|
|
|
|
|
|
|
@@ -130,6 +130,11 @@ func Task() {
|
|
|
task.AddTask("定时生成上周纪要汇总", cygxLastWeekSummary)
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ checkBusinessTripApply := task.NewTask("checkBusinessTripApply", "0 */30 * * * *", CheckBusinessTripApply)
|
|
|
+ task.AddTask("checkBusinessTripApply", checkBusinessTripApply)
|
|
|
+
|
|
|
task.StartTask()
|
|
|
|
|
|
fmt.Println("task end")
|
|
@@ -142,7 +147,7 @@ func Task() {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
func releaseTask() {
|
|
|
|
|
|
|
|
@@ -333,7 +338,7 @@ func RefreshEicData(cont context.Context) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
func RefreshBaseData(cont context.Context) (err error) {
|
|
|
now := time.Now()
|
|
|
if now.Hour() == 0 || now.Hour() == 19 {
|
|
@@ -344,7 +349,7 @@ func RefreshBaseData(cont context.Context) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
func SyncBaseData(cont context.Context) (err error) {
|
|
|
now := time.Now()
|
|
|
if now.Hour() == 0 || now.Hour() == 19 {
|
|
@@ -355,7 +360,7 @@ func SyncBaseData(cont context.Context) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
func SyncBaseDataExt(cont context.Context) (err error) {
|
|
|
now := time.Now()
|
|
|
if now.Hour() == 0 || now.Hour() == 19 {
|
|
@@ -799,7 +804,7 @@ func deleteTask() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
func checkDataServer(cont context.Context) (err error) {
|
|
|
|
|
|
go data.CheckWindDataInterface(cont)
|