作者 邓超

x

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