From 7144c4cb9615ca3d60e12c6286271353b1c8b29d Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 24 十一月 2023 16:44:43 +0800
Subject: [PATCH] 查询指定操作详情修改

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

diff --git a/main.go b/main.go
index 11683c2..91c2eeb 100644
--- a/main.go
+++ b/main.go
@@ -14,8 +14,10 @@
 	"wms/controllers"
 	"wms/models"
 	"wms/pkg/logx"
+	"wms/proto/client"
 	"wms/proto/product_inventory"
 	"wms/proto/purchase_wms"
+	"wms/proto/supplier"
 	"wms/router"
 	"wms/service"
 )
@@ -49,6 +51,8 @@
 	go controllers.InitInventoryOrderServiceConn()
 	go controllers.InitProductInventoryServiceConn()
 	go controllers.InitCodeServiceConn()
+	go supplier.InitConn()
+	go client.InitConn()
 	//鍚姩grpc鏈嶅姟
 	go func() {
 		ln, err := net.Listen("tcp", ":"+conf.WebConf.GrpcPort)
@@ -69,6 +73,7 @@
 	}()
 
 	go service.InitLocationReportData()
+	go service.InitHistoryReportData()
 
 	logx.Error(server.ListenAndServe().Error())
 }
@@ -86,6 +91,8 @@
 	controllers.CloseInventoryOrderServiceConn()
 	controllers.CloseProductInventoryServiceConn()
 	controllers.CloseCodeServiceConn()
+	supplier.CloseConn()
+	client.CloseConn()
 	// 鍏抽棴HTTP鏈嶅姟鍣�
 	if err := server.Shutdown(ctx); err != nil {
 		logx.Infof("鏈嶅姟浼橀泤閫�鍑哄け璐�: %v", err)

--
Gitblit v1.8.0