Commit 3df99041 authored by hujun's avatar hujun

a

parent b1e834e7
......@@ -214,7 +214,7 @@ class ADistrict extends BaseModel
*/
public function getListDistrictTotal($params, $join=0){
if ($join == 0) {
$data = $this->where($params)->count();
$data = $this->alias('a')->where($params)->count();
} else {
$data = $this->alias('a')
->join('a_agents b','a.id=b.district_id','left')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment