Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static ChatRoomListResultDTO toChatRoomResultDTO(ChatRoomListResultDTO re
.opponentId(request.getOpponentId())
.opponentName(request.getOpponentName())
.opponentProfileImage(request.getOpponentProfileImage())
.phoneNumber(request.getPhoneNumber())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ public class ChatRoomListResultDTO {
private Long opponentId;
private String opponentName;
private String opponentProfileImage;
private String phoneNumber;
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ SELECT MAX(m2.createdAt)
WHEN am.id IS NULL AND pm.id = :memberId THEN -1
WHEN pm.id = :memberId THEN am.profileUrl
ELSE pm.profileUrl
END
END,
CASE
WHEN pm.id IS NULL AND am.id = :memberId THEN '-1'
WHEN am.id IS NULL AND pm.id = :memberId THEN '-1'
WHEN pm.id = :memberId THEN am.phoneNum
ELSE pm.phoneNum
END
)
FROM ChattingRoom r
LEFT JOIN r.partner p
Expand Down