From f1dc96e9bc6d3d675b58cd4331dfc4737ecd06bd Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 24 Jun 2020 13:31:10 +0800 Subject: [PATCH] 'commit' --- dsBaseRpc/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dsBaseRpc/main.go b/dsBaseRpc/main.go index 9b77b315..a31ee22c 100644 --- a/dsBaseRpc/main.go +++ b/dsBaseRpc/main.go @@ -51,8 +51,11 @@ func main() { c := cron.New(cron.WithSeconds()) c.AddFunc("0 0 1 * * *", func() { //清除导入数据的临时表 - var db=DbUtil.Engine - sql:="truncate table t_base_teacher_import_excel" + var db = DbUtil.Engine + sql := "truncate table t_base_teacher_import_excel" + db.SQL(sql).Execute() + + sql = "truncate table t_base_student_import_excel" db.SQL(sql).Execute() }) c.Start()