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