Commit 59890e5d authored by zw's avatar zw

searchOrder bug

parent c157ba21
...@@ -869,7 +869,9 @@ class OrderLogService ...@@ -869,7 +869,9 @@ class OrderLogService
$vModel = new VerifyService(); $vModel = new VerifyService();
$agentArr = $vModel->getAgentsByAgentId($params["agent_id"]); $agentArr = $vModel->getAgentsByAgentId($params["agent_id"]);
if(empty($agentArr)){
return ["code" => "101", "msg" => "经纪人不存在"];
}
$where_ = $condition; $where_ = $condition;
if ($agentArr) { if ($agentArr) {
$params["report_agent_id"] = $agentArr; $params["report_agent_id"] = $agentArr;
......
...@@ -623,7 +623,7 @@ class AAgents extends BaseModel ...@@ -623,7 +623,7 @@ class AAgents extends BaseModel
public function searchAgentsByKeyword($field, $params) public function searchAgentsByKeyword($field, $params)
{ {
$params["status"] = 0; $params["status"] = array("in","0,3");
$result = Db::table($this->table) $result = Db::table($this->table)
->field($field) ->field($field)
......
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