作者 邓超

x

@@ -357,7 +357,7 @@ class MailListV2 extends Base { @@ -357,7 +357,7 @@ class MailListV2 extends Base {
357 unset($where['folder_id']); 357 unset($where['folder_id']);
358 $where['email_id'] = $emails; 358 $where['email_id'] = $emails;
359 unset($where['is_hots']); 359 unset($where['is_hots']);
360 - $flaggedCount = db()->cache($this->cache)->count("select count(*) from `lists` where " . dbWhere($where).' group by `udate`'); 360 + $flaggedCount = db()->cache($this->cache)->count("SELECT COUNT(*) FROM (select `id` from `lists` where " . dbWhere($where).' group by `udate`) as c');
361 } 361 }
362 362
363 $data = []; 363 $data = [];