Commit b45f35ae authored by zw's avatar zw

最适合业态

parent ce5836d1
...@@ -96,13 +96,13 @@ class MapFindHouse extends Basic ...@@ -96,13 +96,13 @@ class MapFindHouse extends Basic
$disc_str .= $item["name"] . ","; $disc_str .= $item["name"] . ",";
} }
$disc_str = rtrim($disc_str, ","); $disc_str = rtrim($disc_str, ",");
$params["a.disc"] = array("in",$disc_str); $where_["a.disc"] = array("in",$disc_str);
if($params["source"] == 2){ if($params["source"] == 2){
$params['a.status'] = array('eq', 1); //只显示上架 $where_['a.status'] = array('eq', 1); //只显示上架
$params['a.is_show'] = array('eq', 0); //c端只显示可显示的楼盘 $where_['a.is_show'] = array('eq', 0); //c端只显示可显示的楼盘
} }
$shop_arr = $this->gHousesModel->getHouseNumByDisc($params); $shop_arr = $this->gHousesModel->getHouseNumByDisc($where_);
$disc_arr = []; $disc_arr = [];
foreach ($disc as $key => $item) { foreach ($disc as $key => $item) {
foreach ($shop_arr as $i => $j) { foreach ($shop_arr as $i => $j) {
......
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