...
|
...
|
@@ -245,11 +245,16 @@ class MailListV2 extends Base { |
|
|
return $v;
|
|
|
},$lists?:[]);
|
|
|
|
|
|
// 总数
|
|
|
if(empty($where['flagged'])){
|
|
|
$total = db()->cache($this->cache)->count(sprintf($sql,"count(*)"));
|
|
|
if($lists){
|
|
|
// 总数
|
|
|
if(empty($where['flagged'])){
|
|
|
$total = db()->cache($this->cache)->count(sprintf($sql,"count(*)"));
|
|
|
}else{
|
|
|
$total = db()->cache($this->cache)->count("select count(*) from (".sprintf($sql,"`id`").' group by `udate`) as t');
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
$total = db()->cache($this->cache)->count("select count(*) from (".sprintf($sql,"`id`").' group by `udate`) as t');
|
|
|
$total = 0;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|