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