From 2f32021ab211cd901e36c4cbc5875f0f072385bb Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 14 十一月 2023 14:00:39 +0800
Subject: [PATCH] 自动获取物料编码

---
 main.go |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/main.go b/main.go
index c6017aa..0fb90de 100644
--- a/main.go
+++ b/main.go
@@ -46,6 +46,7 @@
 	//鍚姩grpc瀹㈡埛绔�
 	go controllers.InitInventoryOrderServiceConn()
 	go controllers.InitProductInventoryServiceConn()
+	go controllers.InitCodeServiceConn()
 	//鍚姩grpc鏈嶅姟
 	go func() {
 		ln, err := net.Listen("tcp", ":"+conf.WebConf.GrpcPort)
@@ -78,6 +79,7 @@
 
 	controllers.CloseInventoryOrderServiceConn()
 	controllers.CloseProductInventoryServiceConn()
+	controllers.CloseCodeServiceConn()
 	// 鍏抽棴HTTP鏈嶅姟鍣�
 	if err := server.Shutdown(ctx); err != nil {
 		logx.Infof("鏈嶅姟浼橀泤閫�鍑哄け璐�: %v", err)

--
Gitblit v1.8.0