Commit 1617f180 authored by hujun's avatar hujun

删除楼盘的商铺列表显示

parent 7cb6ff83
...@@ -170,7 +170,7 @@ class Houses extends Basic ...@@ -170,7 +170,7 @@ class Houses extends Basic
if ($params['id'] != NULL) { if ($params['id'] != NULL) {
$where['id'] = $params['id']; $where['id'] = $params['id'];
} }
$where['status'] = ['<>',2]; $where['status'] = ['<>',3];
$data['data']['list'] = $this->house->getHouseList($pageNo, $pageSize, 'id DESC', $fields, $where); $data['data']['list'] = $this->house->getHouseList($pageNo, $pageSize, 'id DESC', $fields, $where);
$data['data']['total'] = $this->house->getTotal($where); $data['data']['total'] = $this->house->getTotal($where);
} else { } else {
...@@ -179,7 +179,7 @@ class Houses extends Basic ...@@ -179,7 +179,7 @@ class Houses extends Basic
if ($params['id'] != NULL) { if ($params['id'] != NULL) {
$where['a.id'] = $params['id']; $where['a.id'] = $params['id'];
} }
$where['a.status'] = ['<>',2]; $where['a.status'] = ['<>',3];
$where['c.name'] = ['LIKE',$params['dish'].'%']; $where['c.name'] = ['LIKE',$params['dish'].'%'];
$where['b.type'] = ['=',1]; $where['b.type'] = ['=',1];
$data['data']['list'] = $this->house->getHouseListDish($pageNo, $pageSize, 'a.id DESC', $fields, $where); $data['data']['list'] = $this->house->getHouseListDish($pageNo, $pageSize, 'a.id DESC', $fields, $where);
...@@ -197,6 +197,7 @@ class Houses extends Basic ...@@ -197,6 +197,7 @@ class Houses extends Basic
public function del() { public function del() {
$data['status'] = 200; $data['status'] = 200;
$data['msg'] = ''; $data['msg'] = '';
$data['data'] = '';
$params = $this->request->param(); $params = $this->request->param();
if ($params['id']) { if ($params['id']) {
$this->house->isUpdate(true)->save(['status'=>3],['id'=>$params['id']]); $this->house->isUpdate(true)->save(['status'=>3],['id'=>$params['id']]);
......
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