Commit b2932ed6 authored by zhuwei's avatar zhuwei

价格面积

parent 08562e52
...@@ -156,7 +156,13 @@ class Member extends Basic{ ...@@ -156,7 +156,13 @@ class Member extends Basic{
$where['a.industry_type'] = $params['industry_type']; $where['a.industry_type'] = $params['industry_type'];
} }
//面积需求
//面积需求2
if ($params['area_start'] >= 0 && $params['area_end'] >= 0) { //面积
$where['a.area_demand'] = array( 'between', array( $params['area_start'], $params['area_end'] ) );
}else{
//面积需求1
if (!empty($params['area_type'])) { if (!empty($params['area_type'])) {
switch ($params['area_type']) { switch ($params['area_type']) {
case 1 : case 1 :
...@@ -169,8 +175,15 @@ class Member extends Basic{ ...@@ -169,8 +175,15 @@ class Member extends Basic{
$where['a.area_demand'] = ['>', 100]; $where['a.area_demand'] = ['>', 100];
} }
} }
}
//价格需求
//价格需求2
if ($params['price_start'] >= 0 && $params['price_end'] >= 0) { //金额
$where['a.price_demand'] = array( 'between', array( $params['price_start'], $params['price_end'] ) );
}else{
//价格需求1
if (!empty($params['price_type'])) { if (!empty($params['price_type'])) {
switch ($params['price_type']) { switch ($params['price_type']) {
case 1 : case 1 :
...@@ -181,6 +194,7 @@ class Member extends Basic{ ...@@ -181,6 +194,7 @@ class Member extends Basic{
$where['a.price_demand'] = ['>', 30000]; $where['a.price_demand'] = ['>', 30000];
} }
} }
}
if (!empty($params['invite_agent_phone'])) { if (!empty($params['invite_agent_phone'])) {
$type = 4; $type = 4;
......
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