Commit 74c1f6d3 authored by chenweijian's avatar chenweijian

群组指定分区

parent 4546d9fe
......@@ -28,7 +28,7 @@ func GroupTopGetAll(model *domain.Model, area int) ([]string, error) {
err := model.DB().Table("group_top gt").
Joins("left join group_info gi on gt.im_group_id = gi.im_group_id left join res_country rc on gi.country = rc.name").
Where("rc.area = ?", area).
Order("id").Find(&rows).Error
Order("gt.id").Find(&rows).Error
if err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment