🎨 消息总结新增传入群名称和过滤排行榜及前一天的总结消息

This commit is contained in:
李寻欢
2024-05-31 07:27:17 +08:00
parent 6818b10f4a
commit b2598f2406
2 changed files with 4 additions and 1 deletions

View File

@@ -73,6 +73,8 @@ func GetTextMessagesById(id string) (records []vo.TextMessageItem, err error) {
Where("tm.`from_user` = ?", id).
Where(`(tm.type = 1 OR ( tm.type = 49 AND EXTRACTVALUE ( tm.content, "/msg/appmsg/type" ) IN (?) ))`, appMsgList).
Where("DATE ( tm.create_at ) = DATE ( CURDATE() - INTERVAL 1 DAY )").
Where("tm.content NOT LIKE '#昨日水群排行榜%'").
Where("tm.content NOT LIKE '#昨日消息总结%'").
Order("tm.create_at ASC")
err = tx.Find(&records).Error