This commit is contained in:
苏尹岚
2020-12-29 15:09:20 +08:00
parent e456ee1be9
commit 04acffa985
3 changed files with 57 additions and 43 deletions

View File

@@ -267,8 +267,8 @@ func GetMessageGroupMembers(db *DaoDB, groupID, groupType int, memberUserID stri
FROM message_group_member a
`
if groupType != 0 {
sql += ` JOIN message_group b ON b.group_id = a.group_id AND b.type = ?`
sqlParams = append(sqlParams, groupType)
sql += ` JOIN message_group b ON b.group_id = a.group_id AND b.type = ? AND b.deleted_at = ?`
sqlParams = append(sqlParams, groupType, utils.DefaultTimeValue)
}
sql += `
WHERE a.deleted_at = ?