@@ -129,7 +129,12 @@ class MailList extends Base {
if($extSql){
$sql="select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where);
}else{
$sql="select %s from `lists` where ".dbWhere($where);
if($folder=='收件箱'||$folder=='发件箱'){
$sql="select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) ".dbWhere($where);
}else{
$sql="select %s from `lists` where ".dbWhere($where);
}
}
// 查询列表数据
...
...
@@ -174,12 +179,15 @@ class MailList extends Base {
$sql="select count(*) from `fob_hot_mail` where ";