Commit 15fa5a2c authored by zhuwei's avatar zhuwei

商铺跟进列表-搜索

parent af229bc5
...@@ -180,7 +180,18 @@ class HomePageLog extends Basic ...@@ -180,7 +180,18 @@ class HomePageLog extends Basic
if (!empty($params["province"]) && !empty($params["province"])) { if (!empty($params["province"]) && !empty($params["province"])) {
$where_["f.province"] = $params["province"]; $where_["f.province"] = $params["province"];
} }
//商铺ID搜索
if (!empty($params["house_id"]) && !empty($params["house_id"])) {
$where_["f.house_id"] = $params["house_id"];
}
//部门搜索
if (!empty($params["district_id"]) && !empty($params["district_id"])) {
$where_["a.district_id"] = $params["district_id"];
}
//门店搜索
if (!empty($params["store_id"]) && !empty($params["store_id"])) {
$where_["a.store_id"] = $params["store_id"];
}
if (!empty($params["name_or_phone"])) { if (!empty($params["name_or_phone"])) {
if ((preg_match("/^1\d{10}$/", $params['name_or_phone']) == 1)) { if ((preg_match("/^1\d{10}$/", $params['name_or_phone']) == 1)) {
......
...@@ -119,6 +119,7 @@ class GHousesFollowUp extends BaseModel ...@@ -119,6 +119,7 @@ class GHousesFollowUp extends BaseModel
->field($field) ->field($field)
->alias('f') ->alias('f')
->join($join) ->join($join)
->join('a_agents a', 'f.agent_id = a.id', 'left')
->where($where) ->where($where)
->group($group) ->group($group)
->order($order_) ->order($order_)
......
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