Commit cb7728cb authored by hujun's avatar hujun

status

parent 3167d137
...@@ -185,11 +185,6 @@ class Houses extends Basic ...@@ -185,11 +185,6 @@ class Houses extends Basic
$where['disc'] = $this->params['disc']; $where['disc'] = $this->params['disc'];
} }
/*状态 0待审批 1上架 2下架 3回收*/
if (!empty($this->params['status'])) {
$where['status'] = $this->params['status'];
}
// /*价格 -1表示营业额扣点 存分*/ // /*价格 -1表示营业额扣点 存分*/
// if ($this->params['rent_price'] != NULL && $this->params['rent_price'] != -1) { // if ($this->params['rent_price'] != NULL && $this->params['rent_price'] != -1) {
// $where['rent_type'] = 1; // $where['rent_type'] = 1;
...@@ -284,7 +279,13 @@ class Houses extends Basic ...@@ -284,7 +279,13 @@ class Houses extends Basic
if ($this->params['id'] != NULL) { if ($this->params['id'] != NULL) {
$where['id'] = $this->params['id']; $where['id'] = $this->params['id'];
} else { } else {
$where['status'] = [ '<>', 3 ]; /*状态 0待审批 1上架 2下架 3回收*/
if (empty($this->params['status'])) {
$where['status'] = [ '<>', 3 ];
} else {
$where['status'] = $this->params['status'];
}
if (empty($this->params['city'])) { if (empty($this->params['city'])) {
$where['city'] = $this->city; $where['city'] = $this->city;
} else { } else {
......
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