Commit 48a5b587 authored by shiyu's avatar shiyu

根据昵称搜索会话列表

parent 5a5a7b18
......@@ -22,6 +22,7 @@ public class ConversationDaoImpl implements ConversationDao {
public List<Conversation> findList(ConversationRequestDto dto) {
ConversationExample conversationExample = new ConversationExample();
ConversationExample.Criteria criteria = conversationExample.createCriteria();
JdbcHelper.ifPresent(dto.getFromAccountList(), criteria::andFromAccountIn);
JdbcHelper.ifPresent(dto.getFromAccount(), criteria::andFromAccountEqualTo);
JdbcHelper.ifPresent(dto.getToAccount(), criteria::andToAccountEqualTo);
conversationExample.setOrderByClause("id asc");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment