ppt_v2_save_log.go 259 B

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