From 8a5f5dc40e82bf98e307082726ebe860002e019f Mon Sep 17 00:00:00 2001
From: gigibox <gigibox@163.com>
Date: 星期三, 21 六月 2023 15:45:31 +0800
Subject: [PATCH] 修改库存数据为增量上报

---
 report/loop.go |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/report/loop.go b/report/loop.go
index b2dbff3..93c362b 100644
--- a/report/loop.go
+++ b/report/loop.go
@@ -2,7 +2,9 @@
 
 import (
 	"context"
+	"kingdee-dbapi/config"
 	"kingdee-dbapi/logger"
+	"time"
 )
 
 var ctx context.Context
@@ -37,8 +39,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)
 		}
 	}
 }

--
Gitblit v1.8.0