From 7e1d876604a81951720d9e94111c0fea593d69f8 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Wed, 5 Mar 2025 19:15:48 +0800 Subject: [PATCH] =?UTF-8?q?sql=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/shell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dao/shell.go b/dao/shell.go index 362d3b0..e382be7 100644 --- a/dao/shell.go +++ b/dao/shell.go @@ -35,9 +35,9 @@ func FindShellByID(id, uid uint) []Shell { var result *gorm.DB if proto.Config.SERVER_SQL_LOG { - result = DB.Debug().Where("id = ? & auth_id = ?", id, uid).First(&shell) + result = DB.Debug().Where("id = ? and auth_id = ?", id, uid).First(&shell) } else { - result = DB.Where("id = ? & auth_id = ?", id, uid).First(&shell) + result = DB.Where("id = ? and auth_id = ?", id, uid).First(&shell) } var res []Shell res = append(res, shell)