From 779b6eb1c081e07f119d51ab8ea38b1092182131 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Thu, 5 Sep 2024 14:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A2=E5=8D=95=E8=BD=AE?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/console/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/console/command.go b/app/console/command.go index 8149115..39a32f3 100644 --- a/app/console/command.go +++ b/app/console/command.go @@ -32,7 +32,7 @@ func ClearUnpayOrder() { session.Begin() _, err := session.In("id", ids).Update(&ordersmodel.Orders{State: 9}) if err == nil { - _, err = session.Exec("update Products set stock=stock+1 where id in (" + strings.Join(prodIds, ",") + ")") + _, err = session.Exec("update products set stock=stock+1 where id in (" + strings.Join(prodIds, ",") + ")") if err == nil { session.Commit() } else {