港口场景筛选

This commit is contained in:
2025-09-02 18:04:09 +08:00
parent a3d39feace
commit 152ce9a75f
7 changed files with 36 additions and 8 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ class SysPortLogic
*/
protected string $modelClass = SysPort::class;
public function getList()
public function getList($where)
{
return SysPort::where('status', 1)->orderBy('sort','desc')->get(['id', 'port_code', 'port_name', 'country_id', 'description']);
return SysPort::where('status', 1)->where($where)->orderBy('sort','desc')->get(['id', 'port_code', 'port_name', 'country_id', 'description']);
}
}