From c8303f55819e2d8b5a56e6316f79c2250d9b659c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 08 十月 2023 21:16:09 +0800
Subject: [PATCH] 工序更新时保存使用的工艺参数编号

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

diff --git a/main.go b/main.go
index 54c673f..f9585bf 100644
--- a/main.go
+++ b/main.go
@@ -2,10 +2,12 @@
 
 import (
 	"apsClient/conf"
+	"apsClient/crontask"
 	"apsClient/model"
 	"apsClient/nsq"
 	"apsClient/pkg/logx"
 	"apsClient/router"
+	"apsClient/service/plc_address"
 	"fmt"
 	"net/http"
 	"os"
@@ -29,6 +31,16 @@
 		return
 	}
 
+	if err := crontask.InitTask(); err != nil {
+		logx.Errorf("crontab task Init err:%v", err)
+		return
+	}
+	//鍔犺浇plc鍐欏叆鍦板潃
+	plc_address.LoadAddressFromFile()
+
+	////鎻愬墠鍔犺浇浠诲姟
+	//service.NewTaskService().GetTask()
+
 	go shutdown()
 	logx.Infof("apsClient start serve...")
 	server := &http.Server{

--
Gitblit v1.8.0