Commit 40890ffb authored by hujun's avatar hujun

记录客户拨打经纪人次数

parent f275a0ab
This diff is collapsed.
......@@ -312,11 +312,6 @@ class AAgents extends BaseModel
return $this->save([ 'password' => md5($pwd) ], [ 'id' => $id ]);
}
public function saveList()
{
}
/**
* 分页列表
* @param int $p
......@@ -343,13 +338,16 @@ class AAgents extends BaseModel
return $data;
}
/**
* 统计任务获取经纪人列表
*
* @param int $pageNo
* @param int $pageSize
* @param string $field
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsListByTask($pageNo = 1, $pageSize = 15, $field = "id")
{
......@@ -358,7 +356,6 @@ class AAgents extends BaseModel
->limit($pageSize)
->page($pageNo)
->select();
}
/**
......@@ -373,8 +370,12 @@ class AAgents extends BaseModel
/**
* 批量获取经纪人
*
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsByStoreId($params)
{
......@@ -386,7 +387,13 @@ class AAgents extends BaseModel
return $result;
}
/**
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function countAgentNum($params)
{
$where_ = $whereOr_ = [];
......@@ -413,7 +420,14 @@ class AAgents extends BaseModel
}
/**
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAgentsInfoByAgentId($field, $params)
{
$where_ = [];
......@@ -444,6 +458,13 @@ class AAgents extends BaseModel
}
/**
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getStoreOrDistrict($params){
$result = Db::table($this->table)
->field("id,name,img")
......@@ -453,6 +474,14 @@ class AAgents extends BaseModel
return $result;
}
/**
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function searchAgentsByKeyword($field, $params)
{
......@@ -508,13 +537,15 @@ class AAgents extends BaseModel
->value('id');
}
/**
* 根据id检查是否有权限
*
* @param $agents_id
* @param $rule
* @return mixed
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function agentsAuthIds($agents_id, $rule)
{
......
......@@ -264,6 +264,7 @@ Route::group('api', [
'brokerDetail' => [ 'api/broker/brokerDetail', [ 'method' => 'get' ] ], //经纪人详情
//post broker
'appraiser' => [ 'api/broker/appraiser', [ 'method' => 'post' ] ], //评价经纪人
'recordCallNum' => [ 'api/broker/recordCallNum', [ 'method' => 'post' ] ], //记录拨打经纪人号码
//get member
'logout' => [ 'api/member/logout', [ 'method' => 'get' ] ],
......
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