From 20bbbcc1d14536ddaa498ac84a6008828df8dc1c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 13 十二月 2023 20:23:11 +0800
Subject: [PATCH] 往plc写目标数时,优先往写入地址写,没有写入地址再往读取地址写

---
 model/device.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/model/device.go b/model/device.go
index 1e490d3..ba49b0a 100644
--- a/model/device.go
+++ b/model/device.go
@@ -10,7 +10,7 @@
 type (
 	// Device 璁惧
 	Device struct {
-		gorm.Model
+		CommonModel
 		DeviceID             string   `gorm:"column:device_id;type:varchar(255);not null;unique" json:"deviceID"` //璁惧缂栧彿
 		DeviceName           string   `gorm:"column:device_name;type:varchar(255);" json:"deviceName"`            //璁惧鍚嶇О
 		ExtChannelAmount     int      `gorm:"type:tinyint;default:0" json:"extChannelAmount"`

--
Gitblit v1.8.0