Commit 8b83137a authored by clone's avatar clone

bug

parent d6c3400e
...@@ -291,10 +291,10 @@ class OrderLog extends Basic ...@@ -291,10 +291,10 @@ class OrderLog extends Basic
public function searchOrder() public function searchOrder()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"type" => 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址 "type" => 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id" => 1, "agent_id" => 10031,
"search_keyword" => "福气" "search_keyword" => ""
);*/ );*/
if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) { if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
......
...@@ -578,7 +578,9 @@ class OrderLogService ...@@ -578,7 +578,9 @@ class OrderLogService
$vModel = new VerifyService(); $vModel = new VerifyService();
$agentArr = $vModel->getAgentsByAgentId($params["report_agent_id"]); $agentArr = $vModel->getAgentsByAgentId($params["agent_id"]);
if ($agentArr) { if ($agentArr) {
//$params["report_agent_id"] = $agentArr; //$params["report_agent_id"] = $agentArr;
$condition .= "and b.report_agent_id in (" . trim($agentArr) . ") "; $condition .= "and b.report_agent_id in (" . trim($agentArr) . ") ";
......
...@@ -42,6 +42,9 @@ class VerifyService ...@@ -42,6 +42,9 @@ class VerifyService
case 40: case 40:
$arr_list = $this->agentModel->searchAgentsByKeyword("id", [ "district_id" => $result[0]["district_id"] ]); $arr_list = $this->agentModel->searchAgentsByKeyword("id", [ "district_id" => $result[0]["district_id"] ]);
break; break;
default:
return $agent_id;
break;
} }
$ids = ""; $ids = "";
if (count($arr_list) > 0) { if (count($arr_list) > 0) {
...@@ -103,12 +106,13 @@ class VerifyService ...@@ -103,12 +106,13 @@ class VerifyService
} }
/** /**
* 获取楼盘的盘方经纪人id *
* @param $house_id * @param $house_id
* @return false|\PDOStatement|string|\think\Collection * @return false|\PDOStatement|string|\think\Collection
*/ */
public function getPanpartyAgentsByHouseId($house_id){ public function getPanpartyAgentsByHouseId($house_id)
$houseToAgentModel = new GHousesToAgents(); {
$houseToAgentModel = new GHousesToAgents();
return $houseToAgentModel->getHousesAgents($house_id); return $houseToAgentModel->getHousesAgents($house_id);
} }
} }
\ No newline at end of file
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