|
@@ -18,7 +18,10 @@ import java.util.List;
|
|
public interface AiChatConversationMapper extends BaseMapperX<AiChatConversationDO> {
|
|
public interface AiChatConversationMapper extends BaseMapperX<AiChatConversationDO> {
|
|
|
|
|
|
default List<AiChatConversationDO> selectListByUserId(Long userId) {
|
|
default List<AiChatConversationDO> selectListByUserId(Long userId) {
|
|
- return selectList(AiChatConversationDO::getUserId, userId);
|
|
|
|
|
|
+ return selectList(new LambdaQueryWrapperX<AiChatConversationDO>()
|
|
|
|
+ .eq(AiChatConversationDO::getUserId, userId)
|
|
|
|
+ .notIn(AiChatConversationDO::getTitle, "新对话")
|
|
|
|
+ .orderByDesc(AiChatConversationDO::getUpdateTime));
|
|
}
|
|
}
|
|
|
|
|
|
default List<AiChatConversationDO> selectListByUserIdAndPinned(Long userId, boolean pinned) {
|
|
default List<AiChatConversationDO> selectListByUserIdAndPinned(Long userId, boolean pinned) {
|