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/device.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/service/device.go b/service/device.go
index f2d8b8a..1906d99 100644
--- a/service/device.go
+++ b/service/device.go
@@ -56,7 +56,7 @@
 	if err != nil {
 		return err
 	}
-	if len(deviceList) >= 0 {
+	if len(deviceList) > 0 {
 		conf.Conf.CurrentDeviceID = deviceList[0]
 	} else if conf.Conf.System.DeviceId != "" {
 		conf.Conf.CurrentDeviceID = conf.Conf.System.DeviceId

--
Gitblit v1.8.0