Commit 73b4d464 authored by zw's avatar zw

订单搜索

parent 77d4b960
......@@ -266,11 +266,11 @@ class OrderLog extends Basic
public function searchOrder()
{
$params = $this->params;
/* $params = array(
$params = array(
"type" => 3, //1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id"=>1,
"search_keyword" => "123"
);*/
"agent_id"=>630,
"search_keyword" => "1"
);
if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) {
return $this->response("101", "请求参数错误");
}
......
......@@ -308,7 +308,11 @@ class OrderLogService
$orderModel = new OrderModel();
$result = $orderModel->searchOrder($field,$condition);
$ids_str = "";
if(count($result) <= 0){
return null;
}else{
foreach ($result as $k=>$v){
$result[$k]["user_phone"] = preg_replace('/(\d{3})\d{4}(\d{4})/','$1****$2',$v["user_phone"]);
$ids_str .= $v["id"] .",";
......@@ -329,6 +333,7 @@ class OrderLogService
}
return $result;
}
}
public function getBargainList($params){
......
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