You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ReportModel.go
    path of file: ./repos/DocHub/models
    
    the code of the file until where you have to start completion: package models

import "github.com/astaxie/beego/orm"

//不良信息举报
type Report struct {
	Id         int  `orm:"column(Id)"`
	Uid        int  `orm:"column(Uid)"`                   //用户ID
	Did        int  `orm:"column(Did)"`                   //文档ID
	Reason     int  `orm:"column
    
func (this *Report) Lists(p, listRows int) (params []orm.Params, rows int64, err error) {
	var sql string
	tables := []string{GetTableReport() + " r", GetTableUser() + " u", GetTableDocument() + " d"}
	on := []map[string]string{
		{"r.Did": "d.Id"},
		{"r.Uid": "u.Id"},
	}
	fields := map[string][]string{
		"r": {"*"},
		"d": {"Title"},
		"u": {"Username"},
	}
	if sql, err = LeftJoinSqlBuild(tables, on, fields, p, listRows, []string{"r.Status asc", "r.Id desc"}, nil, "r.Status>-1"); err == nil {
		rows, err = orm.NewOrm().Raw(sql).Values(&params)
	}
	return
}