|
@@ -37,7 +37,7 @@ func GetEdbTerminalByCode(terminalCode string) (item *EdbTerminal, err error) {
|
|
|
|
|
|
// GetEdbCountGroupByTerminal 获取终端code分组总数
|
|
|
func GetEdbCountGroupByTerminal(source int) (list []ServerUrlCountGroup, err error) {
|
|
|
- o := orm.NewOrm()
|
|
|
+ o := orm.NewOrmUsingDB("data")
|
|
|
sql := `select server_url,count(1) total from edb_info where source = ? AND no_update=0 AND terminal_code != "" group by terminal_code; `
|
|
|
_, err = o.Raw(sql, source).QueryRows(&list)
|
|
|
return
|