From 5036de7ca06a7a04a45642b80db644a55062cd68 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 11 十月 2023 14:10:39 +0800 Subject: [PATCH] debug --- 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 a08e694..1ab13a2 100644 --- a/model/process_model.go +++ b/model/process_model.go @@ -5,7 +5,7 @@ "apsClient/pkg/sqlitex" "encoding/json" "fmt" - "gorm.io/gorm" + "github.com/jinzhu/gorm" ) type ( @@ -118,7 +118,7 @@ } if len(slf.Procedures) != 0 { - db = db.Where("`procedure` in ?", slf.Procedures) + db = db.Where("`procedure` IN (?)", slf.Procedures) } if len(slf.Number) != 0 { -- Gitblit v1.8.0