Commit 164f1df0 authored by zhuwei's avatar zhuwei

业务员不允许点击查看全部成交报告

parent 1fe9e235
......@@ -4,6 +4,7 @@ namespace app\api_broker\controller;
use app\api_broker\extend\Basic;
use app\api_broker\service\BargainService;
use app\model\AAgents;
use think\Request;
/**
......@@ -16,11 +17,15 @@ use think\Request;
class Bargain extends Basic
{
private $service_;
private $agentModel;
public function __construct($request = null)
{
parent::__construct($request);
$this->service_ = new BargainService();
$this->agentModel = new AAgents();
}
public function bargainList()
......@@ -45,6 +50,17 @@ class Bargain extends Basic
$status = $params["status"];
$is_my_correlation = $params["is_my_correlation"];
$keyword = empty($params["keyword"]) ? "" : $params["keyword"];
/*业务员不允许点击查看全部成交报告 start*/
$agent_field = "a.level";
$agent_res = $this->agentModel->getAgentsInfoByAgentId($agent_field, [ "agent_id" => $submit_agent_id ]);
if(($agent_res[0]['level'] == 10) && ($is_my_correlation == 0)){
return $this->response("200", "暂无权限!");
}
/*业务员不允许点击查看全部成交报告 end*/
if ($is_my_correlation == 0) {//返回空
return $this->response("200", "success");
}
......
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