1234567891011121314 |
- package data_manage
- import (
- "eta_gn/eta_task/global"
- )
- func GetEdbDataQuarterCount(edbInfoId int) (count int, err error) {
- //o := orm.NewOrm()
- hsql := `SELECT COUNT(1) AS count FROM edb_data_quarter WHERE edb_info_id=? `
- //err = o.Raw(hsql, edbInfoId).QueryRow(&count)
- err = global.DEFAULT_DmSQL.Raw(hsql, edbInfoId).Scan(&count).Error
- return
- }
|