|
@@ -24,7 +24,7 @@ func Task() {
|
|
|
|
|
|
func releaseTask() {
|
|
|
|
|
|
- if utils.BusinessCode != "E2023080900" {
|
|
|
+ if utils.BusinessCode != utils.BusinessCodeRelease {
|
|
|
syncHzDataIndex := task.NewTask("syncHzDataIndex", "0 10,20,40,50 16,18 * * *", SyncHzDataIndex)
|
|
|
task.AddTask("syncHzDataIndex", syncHzDataIndex)
|
|
|
}
|
|
@@ -82,6 +82,12 @@ func releaseTask() {
|
|
|
|
|
|
clearAdminOperateLog := task.NewTask("clearAdminOperateLog", "0 20 23 * * *", ClearAdminOperateLog)
|
|
|
task.AddTask("定时清理用户操作日志", clearAdminOperateLog)
|
|
|
+
|
|
|
+
|
|
|
+ if utils.BusinessCode == utils.BusinessCodeJiaYue {
|
|
|
+ syncJiaYueNewIndex := task.NewTask("syncJiaYueNewIndex", "0 */1 * * * *", data.SyncJiaYueNewIndex)
|
|
|
+ task.AddTask("定时同步嘉悦物产增量指标", syncJiaYueNewIndex)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func RefreshData(cont context.Context) (err error) {
|