Commit ed5721d2 authored by zhuwei's avatar zhuwei

1

parent 64cb0901
...@@ -388,6 +388,7 @@ class AStore extends BaseModel ...@@ -388,6 +388,7 @@ class AStore extends BaseModel
->where($params) ->where($params)
->limit($pageSize) ->limit($pageSize)
->page($pageNo) ->page($pageNo)
->group('c.store_id')
->select(); ->select();
return $result; return $result;
} }
...@@ -401,6 +402,7 @@ class AStore extends BaseModel ...@@ -401,6 +402,7 @@ class AStore extends BaseModel
->join('f_office b', 'a.office_id = b.id', 'left') ->join('f_office b', 'a.office_id = b.id', 'left')
->join('f_store_data c', 'a.id = c.store_id', 'left') ->join('f_store_data c', 'a.id = c.store_id', 'left')
->where($params) ->where($params)
->group('c.store_id')
->count(); ->count();
return $result; return $result;
} }
......
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