From c84a97df024e2a1fbbb6d50a7bcb4b2e2a0838b8 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 07 十一月 2023 17:07:36 +0800
Subject: [PATCH] plc结果支持int32解析

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

diff --git a/model/process_model.go b/model/process_model.go
index eeffa77..1614b26 100644
--- a/model/process_model.go
+++ b/model/process_model.go
@@ -11,7 +11,7 @@
 type (
 	// ProcessModel 宸ヨ壓鍙傛暟
 	ProcessModel struct {
-		gorm.Model   `json:"-"`
+		gorm.Model
 		Number       string `gorm:"index;column:number;type:varchar(255);not null;default ''" json:"number"` //宸ヨ壓妯″瀷缂栧彿
 		Product      string `gorm:"column:product;type:varchar(255);not null;default ''" json:"product"`     //浜у搧鍚嶇О
 		Procedure    string `gorm:"column:procedure;type:varchar(255);not null;default ''" json:"procedure"` //宸ュ簭
@@ -144,7 +144,7 @@
 	}
 
 	if len(slf.Numbers) != 0 {
-		db = db.Where("number in ?", slf.Numbers)
+		db = db.Where("number in (?)", slf.Numbers)
 	}
 
 	return db

--
Gitblit v1.8.0