Commit 213439fe authored by zhuwei's avatar zhuwei

bug

parent c5328ca8
......@@ -42,6 +42,7 @@ class Bargain extends Basic
"page_size" => 10
);*/
$checkResult = $this->validate($params, "BargainValidate.bargainList");
if (true !== $checkResult) {
return $this->response("101", $checkResult);
......@@ -52,12 +53,10 @@ 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)){
Log::write('暂无权限', '7151'); //记录日志
return $this->response("200", "暂无权限!");
}
......
......@@ -36,6 +36,7 @@ class BargainService
} else {
$condition["father_id"] = 0;
}
switch ($status) {
case 1:
$condition["account_statement"] = 0;
......
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