港口场景筛选
This commit is contained in:
@@ -21,8 +21,16 @@ class SysPortService
|
||||
/**
|
||||
* 获取系统list
|
||||
*/
|
||||
public function getList()
|
||||
public function getList($params)
|
||||
{
|
||||
return $this->logic->getList();
|
||||
$where = [];
|
||||
if(isset($params['scene']) && $params['scene']) {
|
||||
if($params['scene'] == 'domestic'){
|
||||
$where['country_id'] = 45;
|
||||
}else{
|
||||
$where['country_id'] = ['<>', 45];
|
||||
}
|
||||
}
|
||||
return $this->logic->getList($where);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user