12345678910111213 |
- package data_manage
- import (
- "github.com/beego/beego/v2/client/orm"
- )
- func DeleteReportLogByDate(date string) (err error) {
- sql := `DELETE FROM report_save_log WHERE create_time<? `
- o := orm.NewOrmUsingDB("rddp")
- _, err = o.Raw(sql, date).Exec()
- return
- }
|