Fix #936 always show messages to/from deleted members

- 탈퇴환 회원과 주고받은 쪽지도 표시하도록 변경
- 탈퇴환 회원의 원래 닉네임이 기록되지 않는 구조이므로
  수신자/발신자 이름에 닉네임 대신 "탈퇴한 회원"이라고만 표시
This commit is contained in:
Kijin Sung 2018-12-13 12:31:51 +09:00
parent 3c34e26cb7
commit a2c9274681
9 changed files with 59 additions and 14 deletions

View file

@ -1,7 +1,11 @@
<query id="getNewMessage" action="select">
<tables>
<table name="member_message" alias="message" />
<table name="member" />
<table name="member" type="left join">
<conditions>
<condition operation="equal" column="member.member_srl" default="message.sender_srl" />
</conditions>
</table>
</tables>
<columns>
<column name="*" />
@ -9,7 +13,6 @@
<conditions>
<condition operation="equal" column="message.receiver_srl" var="receiver_srl" notnull="notnull" />
<condition operation="equal" column="message.readed" var="readed" default="N" notnull="notnull" pipe="and" />
<condition operation="equal" column="message.sender_srl" var="member.member_srl" pipe="and" />
<condition operation="equal" column="message.message_type" var="message_type" default="R" pipe="and" />
</conditions>
<navigation>