package data_manage import ( "github.com/beego/beego/v2/client/orm" ) func GetEdbDataQuarterCount(edbInfoId int) (count int, err error) { o := orm.NewOrmUsingDB("data") hsql := `SELECT COUNT(1) AS count FROM edb_data_quarter WHERE edb_info_id=? ` err = o.Raw(hsql, edbInfoId).QueryRow(&count) return }