ppt_v2_save_log.go 361 B

123456789101112131415
  1. package data_manage
  2. import (
  3. "eta_gn/eta_task/global"
  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. sql := `DELETE FROM ppt_v2_save_log WHERE create_time<? `
  10. err = global.DmSQL["rddp"].Exec(sql, date).Error
  11. return
  12. }