From 1142c435e67a5e0e7bcb181be4fbe14237bf0eba Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 29 六月 2023 10:15:02 +0800
Subject: [PATCH] 物料属性添加生产车间

---
 gui/gui.go |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/gui/gui.go b/gui/gui.go
index 1dfdb39..8276e0c 100644
--- a/gui/gui.go
+++ b/gui/gui.go
@@ -1,11 +1,12 @@
 package gui
 
 import (
-	"kingdee-dbapi/logger"
 	"strings"
 
 	"kingdee-dbapi/config"
 	"kingdee-dbapi/kingdee"
+	"kingdee-dbapi/logger"
+	"kingdee-dbapi/nsqclient"
 	"kingdee-dbapi/report"
 	"kingdee-dbapi/static"
 	"kingdee-dbapi/webserver"
@@ -26,6 +27,7 @@
 
 func NewDisplay() *Display {
 	a := app.New()
+
 	// 璁剧疆鍥炬爣
 	a.SetIcon(static.IconPng)
 
@@ -91,6 +93,9 @@
 
 		report.StartReport()
 
+		// 寮�鍚闃�
+		go nsqclient.InitNsqConsumer(config.Options.QueryTopic, "sensor01", kingdee.QueryMsgHandle)
+
 		go webserver.Serve(serverPort.Text)
 	})
 

--
Gitblit v1.8.0