|
@@ -19,6 +19,7 @@
|
|
|
<result column="sender_email" property="senderEmail"/>
|
|
|
<result column="review_status" property="reviewStatus"/>
|
|
|
<result column="company_name" property="companyName"/>
|
|
|
+ <result column="channel_name" property="channelName"/>
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
@@ -113,13 +114,16 @@
|
|
|
epi.updatetime,
|
|
|
epi.updaterid,
|
|
|
epi.sender_email,
|
|
|
- epi.review_status
|
|
|
+ epi.review_status,
|
|
|
+ ci.channel_name
|
|
|
FROM
|
|
|
email_parse_info epi
|
|
|
left join hosted_email_info hei
|
|
|
on hei.email = epi.sender_email and hei.isvalid=1 and hei.open_status=1
|
|
|
left join pvn_company_info pci
|
|
|
on pci.company_id = hei.company_id and pci.isvalid=1
|
|
|
+ left join CHANNEL_EMAIL_INFO cei on cei.email = epi.email and cei.isvalid=1
|
|
|
+ left join CHANNEL_INFO ci on ci.id = cei.channel_id and ci.isvalid=1
|
|
|
where epi.isvalid=1
|
|
|
<if test="emailTitle !=null and emailTitle !=''">
|
|
|
and epi.email_title like concat('%',#{emailTitle},'%')
|