report_save_log.go 359 B

12345678910111213
  1. package data_manage
  2. import "eta_gn/eta_task/global"
  3. func DeleteReportLogByDate(date string) (err error) {
  4. //sql := `DELETE FROM report_save_log WHERE create_time<? `
  5. //o := orm.NewOrmUsingDB("rddp")
  6. //_, err = o.Raw(sql, date).Exec()
  7. sql := `DELETE FROM report_save_log WHERE create_time<? `
  8. err = global.DmSQL["rddp"].Exec(sql, date).Error
  9. return
  10. }