Commit 513dc590 authored by hujun's avatar hujun

工位搜索

parent 31156a8d
...@@ -985,18 +985,18 @@ class OfficeRoomService ...@@ -985,18 +985,18 @@ class OfficeRoomService
/*可容纳工位*/ /*可容纳工位*/
if (isset($params['station_start'])) { if (isset($params['station_start'])) {
$where['a.station_start'] = $params['station_start']; $where['a.station_start'] = ['>=', $params['station_start']];
} }
/*可容纳工位*/ /*可容纳工位*/
if (isset($params['station_end'])) { if (isset($params['station_end'])) {
$where['a.station_end'] = $params['price_end']; $where['a.station_end'] = ['<=', $params['station_end']];
} }
/*可容纳工位*/ /*可容纳工位*/
if (isset($params['station_end']) && isset($params['station_start'])) { if (isset($params['station_end']) && isset($params['station_start'])) {
$where['a.station_start'] = ['>', $params['station_start']]; $where['a.station_start'] = ['between', [$params['station_start'],$params['station_end']]];
$where['a.station_end'] = ['<', $params['station_end']]; $where['a.station_end'] = ['between', [$params['station_start'],$params['station_end']]];
} }
//编号 //编号
......
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