Commit 0bf7a30b authored by clone's avatar clone

1

parent 76557188
...@@ -140,6 +140,7 @@ class Report extends Basic ...@@ -140,6 +140,7 @@ class Report extends Basic
$check_type = 1; $check_type = 1;
if ($agents_data["level"] < 30) { if ($agents_data["level"] < 30) {
$check_type = $this->service_->getCheckType($this->agentId); $check_type = $this->service_->getCheckType($this->agentId);
echo $check_type;
if ($check_type == 0) { if ($check_type == 0) {
return $this->response(101, "暂无权限"); return $this->response(101, "暂无权限");
} }
......
...@@ -198,17 +198,14 @@ class ReportService ...@@ -198,17 +198,14 @@ class ReportService
break; break;
case 2 : case 2 :
case 3 : case 3 :
$agentArr = $vModel->getAgentsByAgentIdAndType($params["report_agent_id"], $check_type); $params["agent_id_s"] = $params["report_agent_id"];
$params["agent_id_s"] = array("in", $agentArr); $caseHouseId = $vModel->getCaseHouseIdByAgentIdV2($params["agent_id_s"]);
$params["report_agent_id"] = $agentArr;
$caseHouseId = $vModel->getPanpartyAndExclusiveHouseIdByAgentId($params["agent_id_s"]);
$ids = ""; $ids = "";
if (count($caseHouseId) > 0) { if (count($caseHouseId) > 0) {
foreach ($caseHouseId as $item) { foreach ($caseHouseId as $item) {
$ids .= $item["houses_id"] . ","; $ids .= $item["houses_id"] . ",";
} }
} }
$ids = rtrim($ids, ","); $ids = rtrim($ids, ",");
$ids = $ids ? $ids : 0; $ids = $ids ? $ids : 0;
$params["house_ids"] = $ids; $params["house_ids"] = $ids;
......
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