| 
...
 | 
...
 | 
@@ -255,7 +255,12 @@ class MailListV2 extends Base { | 
| 
 | 
 | 
         },$lists?:[]);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         // 总数
 | 
| 
 | 
 | 
         $total  = db()->cache($this->cache)->count(sprintf($sql,"count(*)").(empty($where['flagged'])?'':' group by `udate`'));
 | 
| 
 | 
 | 
         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');
 | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         app()->_json(listsPage($lists,$total,$page,$limit));
 | 
| 
 | 
 | 
 
 | 
...
 | 
...
 | 
 |