report_save_log.go 271 B

1234567891011121314
  1. package data_manage
  2. import (
  3. "eta/eta_task/global"
  4. "eta/eta_task/utils"
  5. )
  6. func DeleteReportLogByDate(date string) (err error) {
  7. sql := `DELETE FROM report_save_log WHERE create_time<? `
  8. o := global.DbMap[utils.DbNameIndex]
  9. err = o.Exec(sql, date).Error
  10. return
  11. }