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