123456789101112131415 |
- package models
- import "eta_gn/eta_task/global"
- // ClearAdminOperateRecord 清理用户操作日志
- func ClearAdminOperateRecord(date string) (err error) {
- //o := orm.NewOrmUsingDB("eta")
- //sql := `DELETE FROM admin_operate_record WHERE create_time <= ?`
- //_, err = o.Raw(sql, date).Exec()
- sql := `DELETE FROM admin_operate_record WHERE create_time <= ?`
- err = global.DmSQL["eta"].Raw(sql, date).Error
- return
- }
|