From 6aa1875c49017e391e485f819439f28a207607fb Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 15 Nov 2021 11:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/custom_migrations.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/custom_migrations.go b/models/custom_migrations.go index 86901c605..43dd57b4b 100644 --- a/models/custom_migrations.go +++ b/models/custom_migrations.go @@ -52,7 +52,7 @@ func syncTopicStruct(x *xorm.Engine) error { return err } -func deleteNotDisplayUser(x *xorm.Engine) error { +func deleteNotDisplayUser(static *xorm.Engine) error { sess := x.NewSession() defer sess.Close() @@ -62,7 +62,7 @@ func deleteNotDisplayUser(x *xorm.Engine) error { for i, userRecord := range userList { log.Info("delete zuzi user, i=" + fmt.Sprint(i) + " userName=" + userRecord.Name) deleteSql := "delete from user_business_analysis where id=" + fmt.Sprint(userRecord.ID) + " and name='" + userRecord.Name + "'" - xStatistic.Exec(deleteSql) + static.Exec(deleteSql) } return nil