|
|
@ -51,8 +51,11 @@ func main() {
|
|
|
|
c := cron.New(cron.WithSeconds())
|
|
|
|
c := cron.New(cron.WithSeconds())
|
|
|
|
c.AddFunc("0 0 1 * * *", func() {
|
|
|
|
c.AddFunc("0 0 1 * * *", func() {
|
|
|
|
//清除导入数据的临时表
|
|
|
|
//清除导入数据的临时表
|
|
|
|
var db=DbUtil.Engine
|
|
|
|
var db = DbUtil.Engine
|
|
|
|
sql:="truncate table t_base_teacher_import_excel"
|
|
|
|
sql := "truncate table t_base_teacher_import_excel"
|
|
|
|
|
|
|
|
db.SQL(sql).Execute()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sql = "truncate table t_base_student_import_excel"
|
|
|
|
db.SQL(sql).Execute()
|
|
|
|
db.SQL(sql).Execute()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
c.Start()
|
|
|
|
c.Start()
|
|
|
|