Commit f28452be authored by zhuwei's avatar zhuwei

盘方信息

parent 7cc7c0c3
......@@ -650,7 +650,9 @@ class OfficeRoomService
//上传人
$result['upload_info'] = $this->getUploadInfo($result['operation_id']);
//独家方
$result['exclusive_info'] = $this->getExclusiveInfo($result['id']);
$result['exclusive_info'] = $this->getExclusiveInfo($result['id'],3);
//盘方
$result['room_relegation_info'] = $this->getExclusiveInfo($result['id'],2);
//房东
$result['landlord_info'] = $this->getLandlordInfo($result['id']);
//房源数
......@@ -778,10 +780,10 @@ class OfficeRoomService
}
//获取独家方
public function getExclusiveInfo($house_id){
public function getExclusiveInfo($house_id,$type=3){
$exclusive_info = [];
$params['house_id'] = $house_id;
$params['type'] = 3;
$params['type'] = $type;
$params['is_del'] = 0;
$res = $this->agent_room->getAgentsByRoomId('b.id,name,a.type,b.phone', $params);
if($res){
......
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