优化查询结果
This commit is contained in:
parent
be5e7a015a
commit
4be98ce412
@ -68,10 +68,14 @@ public class ChatController {
|
||||
public ResultBean<List<AuthorChat>> authorList(String authorId) {
|
||||
List<AuthorChat> authorChats = chatService.selectAuthorChatList(authorId);
|
||||
authorChats.stream().forEach(authorChat -> {
|
||||
try {
|
||||
authorChat.setIndex(String.valueOf(PinyinUtil.getFirstLetter(authorChat.getIndex().charAt(0))));
|
||||
if(authorChat.getCreateTime()!=null){
|
||||
authorChat.setLastSendTime(convertToShanghaiTimeZoneTimestamp( authorChat.getCreateTime()));
|
||||
}
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
});
|
||||
return ResultBean.success(authorChats);
|
||||
}
|
||||
|
@ -33,9 +33,13 @@
|
||||
</el-dropdown>
|
||||
</div>
|
||||
|
||||
<div style="position: absolute;left: 50%;line-height: 50px;font-size: 16px;">
|
||||
qq讨论群:149100946 wx:15638206428
|
||||
</div>
|
||||
|
||||
<div class="right-menu" style="margin-right: 20px;">
|
||||
<div class="top-icon" @click="openIm">
|
||||
|
||||
<el-badge v-show="unReadCount>0" :value="unReadCount" :max="99" >
|
||||
客服消息
|
||||
<i class="el-icon-bell"></i>
|
||||
|
Loading…
x
Reference in New Issue
Block a user