|
@@ -154,7 +154,7 @@ type ServerUrlCountGroup struct {
|
|
// GetServerUrlCountGroupByServerUrl 获取服务器地址分组总数
|
|
// GetServerUrlCountGroupByServerUrl 获取服务器地址分组总数
|
|
func GetServerUrlCountGroupByServerUrl() (list []ServerUrlCountGroup, err error) {
|
|
func GetServerUrlCountGroupByServerUrl() (list []ServerUrlCountGroup, err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
- sql := `select server_url,count(1) total from edb_info where source = 2 and server_url != "" group by server_url; `
|
|
|
|
|
|
+ sql := `select server_url,count(1) total from edb_info where source = 2 AND no_update=0 AND server_url != "" group by server_url; `
|
|
_, err = o.Raw(sql).QueryRows(&list)
|
|
_, err = o.Raw(sql).QueryRows(&list)
|
|
return
|
|
return
|
|
}
|
|
}
|