Commit 128175bb authored by hujun's avatar hujun

适合业态

parent 7fa74268
......@@ -299,6 +299,12 @@ class Houses extends Basic
$where['is_exclusive_type'] = $this->params['is_exclusive_type'];
}
//适合业态
if ($this->params['fit_industry_type'] != -1) {
$where['fit_industry_type'] = $this->params['fit_industry_type'];
}
/*开始时间*/
if ($this->params['start_date'] != NULL && $this->params['end_date'] == NULL) {
$where['create_time'] = [ '> time', $this->params['start_date'] . ' 00:00:00' ];
......
......@@ -746,6 +746,11 @@ class GHouses extends BaseModel
$save_data['is_show_image'] = $data['is_show_image'];
}
//适合业态
if (isset($data['fit_industry_type'])) {
$save_data['fit_industry_type'] = $data['fit_industry_type'];
}
if (empty($data['id'])) {
$save_data['upload_id'] = $agent_id; //上传人
$save_data['create_time'] = date('Y-m-d H:i:s');
......
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