Commit 0bf7a30b authored by clone's avatar clone

1

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