From efec800478214f3a412f879d2b51c2968515995d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 25 十一月 2023 17:04:25 +0800
Subject: [PATCH] plc断开连接时获取工序最后一次报工数量作为加工数

---
 service/config.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/config.go b/service/config.go
index 3378b2a..e1fdc57 100644
--- a/service/config.go
+++ b/service/config.go
@@ -17,11 +17,11 @@
 }
 
 // GetNetConfig 鑾峰彇缃戠粶閰嶇疆
-func (slf ConfigService) GetNetConfig(id int) (ConfigData *model.NetConfig, err error) {
+func (slf ConfigService) GetNetConfig(id uint) (ConfigData *model.NetConfig, err error) {
 	return model.NewNetConfigSearch(nil).SetId(id).First()
 }
 
 // SetNetConfig 璁剧疆缃戠粶閰嶇疆
-func (slf ConfigService) SetNetConfig(id int, config *model.NetConfig) error {
+func (slf ConfigService) SetNetConfig(id uint, config *model.NetConfig) error {
 	return model.NewNetConfigSearch(nil).SetId(id).Save(config)
 }

--
Gitblit v1.8.0