1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| <?php
|
| namespace app\operations\model\shop;
|
| use app\common\model\shop\LoginLog as LoginLogModel;
| /**
| * 区域代理后台管理员登录日志模型
| */
| class LoginLog extends LoginLogModel
| {
| /**
| * 获取列表数据
| */
| public function getList($params)
| {
| $model = $this;
| // 查询条件:订单号
| if (isset($params['username']) && !empty($params['username'])) {
| $model = $model->where('username', 'like', "%{$params['username']}%");
| }
| // 查询列表数据
| return $model->order(['create_time' => 'desc'])
| ->paginate($params);
| }
| }
|
|