正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -195,9 +195,10 @@ class MailList extends Base { | @@ -195,9 +195,10 @@ class MailList extends Base { | ||
195 | public function count(){ | 195 | public function count(){ |
196 | $emails = $this->getEmails('id'); | 196 | $emails = $this->getEmails('id'); |
197 | 197 | ||
198 | - $sql = "select count(*) from `fob_hot_mail` left join `lists` on `fob_hot_mail`.`lists_id` = `lists`.`id` where `lists`.`deleted` = 0 and "; | 198 | + $sql = "select count(*) from `fob_hot_mail` left join `lists` on `fob_hot_mail`.`lists_id` = `lists`.`id` where "; |
199 | 199 | ||
200 | $where = ['lists|email_id'=>$emails]; | 200 | $where = ['lists|email_id'=>$emails]; |
201 | + $where['deleted'] = 0; //未删状态 | ||
201 | // 预热收件箱 | 202 | // 预热收件箱 |
202 | $where['folder'] = 's'; | 203 | $where['folder'] = 's'; |
203 | $sCount = db()->count($sql.dbWhere($where)); | 204 | $sCount = db()->count($sql.dbWhere($where)); |
@@ -205,15 +206,14 @@ class MailList extends Base { | @@ -205,15 +206,14 @@ class MailList extends Base { | ||
205 | $where['folder'] = 'f'; | 206 | $where['folder'] = 'f'; |
206 | $fCount = db()->count($sql.dbWhere($where)); | 207 | $fCount = db()->count($sql.dbWhere($where)); |
207 | 208 | ||
209 | + unset($where['folder']); | ||
210 | + | ||
208 | 211 | ||
209 | - $where = ['lists|email_id'=>$emails]; | ||
210 | 212 | ||
211 | // 屏蔽哪些邮件 | 213 | // 屏蔽哪些邮件 |
212 | $where['from.notin'] = $this->from_not_in(); | 214 | $where['from.notin'] = $this->from_not_in(); |
213 | if(!$where['from.notin']) unset($where['from.notin']); | 215 | if(!$where['from.notin']) unset($where['from.notin']); |
214 | 216 | ||
215 | - $where['deleted'] = 0; //未删状态 | ||
216 | - | ||
217 | $where['folder_id'] = $this->getFolderId('发件箱'); | 217 | $where['folder_id'] = $this->getFolderId('发件箱'); |
218 | // 发件箱 | 218 | // 发件箱 |
219 | $sql = "select count(*) from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) and "; | 219 | $sql = "select count(*) from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) and "; |
-
请 注册 或 登录 后发表评论