Commit 81b5d9f1 authored by chenweijian's avatar chenweijian

座驾cp头像

parent ce6178c2
......@@ -165,7 +165,7 @@ func GetUserAreaMap(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]int,
Area int
}
rows := make([]*info, 0)
sql := "select user.id, rc.area from user left res_country rc on user.country = rc.name where user.id in (?);"
sql := "select user.id, rc.area from user left join res_country rc on user.country = rc.name where user.id in (?);"
if err := model.DB().Raw(sql, userIds).Scan(&rows).Error; err != nil {
return nil, myerr.WrapErr(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