Commit 8b83137a authored by clone's avatar clone

bug

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