Commit 7e809be7 authored by zhuwei's avatar zhuwei

1

parent f3d2ffbd
......@@ -257,9 +257,11 @@ class OfficeRoom extends Basic
*/
public function getMyBuildingRoom()
{
$params = $this->params;
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$result = $this->service->getMyBuildingRoom($pageNo, $pageSize, $this->agentId);
$status = isset($params['status'])?$params['status']:1;
$result = $this->service->getMyBuildingRoom($status,$pageNo, $pageSize, $this->agentId);
return $this->response($result['status'],$result['msg'], $result['data']);
}
......
......@@ -1109,8 +1109,9 @@ class OfficeRoomService
* @param $agentId
* @return array
*/
public function getMyBuildingRoom($pageNo, $pageSize, $agentId){
public function getMyBuildingRoom($status,$pageNo, $pageSize, $agentId){
$field = "a.id,a.area,a.price_total,a.price,a.station_start,a.station_end,a.decoration";
$params["a.status"] = $status;
$params["c.agent_id"] = $agentId;
$params["c.type"] = 2;
$params["c.is_del"] = 0;
......
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