群成员新增加群时间字段

This commit is contained in:
李寻欢
2023-12-01 10:22:01 +08:00
parent 2af0719f51
commit 454b5f0980
6 changed files with 22 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ func GetGroupUsersByGroupId(groupId string) (records []vo.GroupUserItem, err err
Select("tgu.*", "MAX(tm.create_at) AS last_active_time").
Where("tgu.group_id = ?", groupId).
Group("tgu.group_id, tgu.wxid").
Order("tgu.wxid ASC").
Order("tgu.join_time DESC").
Find(&records).Error
return
}