123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * @author: xaboy<365615158@qq.com>
- * @day: 2017/11/11
- */
- namespace app\admin\model\system;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- /**
- * Class Express
- * @package app\admin\model\system
- */
- class Express extends BaseModel
- {
- /**
- * 数据表主键
- * @var string
- */
- protected $pk = 'id';
- /**
- * 模型名称
- * @var string
- */
- protected $name = 'express';
- use ModelTrait;
- public static function systemPage($params)
- {
- $model = new self;
- if ($params['keyword'] !== '') $model = $model->where('name|code', 'LIKE', "%$params[keyword]%");
- $model = $model->order('sort DESC,id DESC');
- return self::page($model, $params);
- }
- }
|