report_save_log.go 263 B

12345678910111213
  1. package data_manage
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. )
  5. func DeleteReportLogByDate(date string) (err error) {
  6. sql := `DELETE FROM report_save_log WHERE create_time<? `
  7. o := orm.NewOrmUsingDB("rddp")
  8. _, err = o.Raw(sql, date).Exec()
  9. return
  10. }