22 lines
463 B
PHP
22 lines
463 B
PHP
<?php
|
|
|
|
namespace app\common\logic;
|
|
|
|
use app\common\traits\crud\CrudLogicTrait;
|
|
use app\common\model\SysPort;
|
|
|
|
class SysPortLogic
|
|
{
|
|
use CrudLogicTrait;
|
|
|
|
/**
|
|
* 指定当前要操作的模型
|
|
*/
|
|
protected string $modelClass = SysPort::class;
|
|
|
|
public function getList($where)
|
|
{
|
|
return SysPort::where('status', 1)->where($where)->orderBy('sort','desc')->get(['id', 'port_code', 'port_name', 'country_id', 'description']);
|
|
}
|
|
|
|
} |