Commit 40890ffb authored by hujun's avatar hujun

记录客户拨打经纪人次数

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