zhangzengfei
2023-06-29 1142c435e67a5e0e7bcb181be4fbe14237bf0eba
report/loop.go
@@ -2,6 +2,9 @@
import (
   "context"
   "time"
   "kingdee-dbapi/config"
   "kingdee-dbapi/logger"
)
@@ -37,8 +40,8 @@
         //sql := []byte("select * from t_icitem where FItemID=3316")
         //ok := nsqclient.Produce(config.Options.QueryTopic, sql)
         //logger.Debug("测试请求接口, %v", ok)
         //
         //time.Sleep(time.Duration(config.Options.SyncInterval) * time.Second)
         time.Sleep(time.Duration(config.Options.SyncInterval) * time.Second)
      }
   }
}