Commit 85fad908 authored by hujun's avatar hujun

带看(报备)经纪人

parent ef5b4d11
......@@ -1205,5 +1205,22 @@ class AAgents extends BaseModel
}
/**
* 带看(报备)经纪人
*
* @param $filed
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentReportBargain($filed, $where) {
return $this->alias('a')
->field($filed)
->join('o_report b', 'a.id = b.report_agent_id', 'left')
->join('o_bargain c', 'b.id = c.report_id', 'left')
->where($where)
->select();
}
}
\ No newline at end of file
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