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()