查询聊天组

This commit is contained in:
苏尹岚
2020-11-16 16:03:42 +08:00
parent f920a30389
commit 5d62f14378
4 changed files with 42 additions and 9 deletions

View File

@@ -215,8 +215,8 @@ func GetMessageGroups(db *DaoDB, userID string, groupID, groupType int, isMember
sqlParams = append(sqlParams, groupType)
}
if groupID != 0 {
sql += " AND group_id = ?"
sqlParams = append(sqlParams, groupID)
sql += " AND group_id LIKE ?"
sqlParams = append(sqlParams, utils.Int2Str(groupID)+"%")
}
if err = GetRows(db, &messageGroupsResult, sql, sqlParams); err == nil {
if isMember {