Commit 32e8be45 authored by zhuwei's avatar zhuwei

1

parent 595ec023
......@@ -133,7 +133,7 @@ class OfficeBroker extends Basic
$list = [];
$agents = new AAgents();
$m_march = new OMarchInModel();
$m_march = new OfficeOMarchInModel();
$m_evaluate = new Evaluate();
//查找30天带看最多的人
......@@ -174,11 +174,11 @@ class OfficeBroker extends Basic
$where['a.id'] = ['neq', $list[1]['id']];
}
$where['b.houses_id'] = $this->params['house_id'];
$where['b.house_id'] = $this->params['house_id'];
$where['b.is_del'] = $where['a.status'] = 0;
$where['b.type'] = 2;
$house_agent = $agents->getAgentHouseType($fields, $where);
$house_agent = $agents->getAgentHouseTypeByOffice($fields, $where);
if (!empty($house_agent)){
$house_agent['show_content'] = '本铺由我登记,熟悉房源信息';
array_push($list, $house_agent);
......
......@@ -1713,6 +1713,14 @@ class AAgents extends BaseModel
->find();
}
public function getAgentHouseTypeByOffice($field, $where) {
return $this->alias('a')
->field($field)
->join('office_g_room_to_agent b', 'a.id=b.agent_id', 'left')
->where($where)
->find();
}
public function getAgentDistrictId($field, $params)
{
$result = Db::table($this->table)
......
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