edb_data_quarter.go 309 B

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