edb_data_quarter.go 355 B

1234567891011121314
  1. package data_manage
  2. import (
  3. "eta_gn/eta_task/global"
  4. )
  5. func GetEdbDataQuarterCount(edbInfoId int) (count int, err error) {
  6. //o := orm.NewOrm()
  7. hsql := `SELECT COUNT(1) AS count FROM edb_data_quarter WHERE edb_info_id=? `
  8. //err = o.Raw(hsql, edbInfoId).QueryRow(&count)
  9. err = global.DEFAULT_DmSQL.Raw(hsql, edbInfoId).Scan(&count).Error
  10. return
  11. }