|
|
@@ -211,13 +211,14 @@ class MasterWorkerLists extends BaseAdminDataLists implements ListsSearchInterfa
|
|
|
$having = 'user_distance <= '.$this->range;
|
|
|
}
|
|
|
}
|
|
|
- return MasterWorker::alias('mw')
|
|
|
+ return count(MasterWorker::alias('mw')
|
|
|
->join('master_worker_register mwr', 'mwr.worker_id = mw.id')
|
|
|
->where($this->searchWhere)
|
|
|
->where($queryWhere)
|
|
|
->where($this->queryDataWhere())
|
|
|
->field($fields)
|
|
|
->having($having)
|
|
|
- ->count('mw.id');
|
|
|
+ ->select()->toArray());
|
|
|
+ //->count('mw.id');
|
|
|
}
|
|
|
}
|