Commit aa2d8da0 authored by hujun's avatar hujun

根据id获取经纪人信息

parent beebd8a3
...@@ -453,4 +453,20 @@ class AAgents extends BaseModel ...@@ -453,4 +453,20 @@ class AAgents extends BaseModel
->where($where) ->where($where)
->find(); ->find();
} }
/**
* 根据id获取经纪人信息
*
* @param $field
* @param $agent_id
* @return array|false|\PDOStatement|string|\think\Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentInfo($field, $agent_id) {
return $this->field($field)
->where('id',$agent_id)
->find();
}
} }
\ 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