34 lines
781 B
PHP
34 lines
781 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace app\adminapi\lists\qywx;
|
|
|
|
use app\adminapi\lists\BaseAdminDataLists;
|
|
use app\common\lists\ListsSearchInterface;
|
|
use app\common\model\QywxMsgSendTask;
|
|
|
|
class MsgSendTaskLists extends BaseAdminDataLists implements ListsSearchInterface
|
|
{
|
|
public function setSearch(): array
|
|
{
|
|
return [
|
|
'=' => ['sender_userid', 'status', 'admin_id'],
|
|
];
|
|
}
|
|
|
|
public function lists(): array
|
|
{
|
|
return QywxMsgSendTask::where($this->searchWhere)
|
|
->order('id', 'desc')
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
->select()
|
|
->toArray();
|
|
}
|
|
|
|
public function count(): int
|
|
{
|
|
return QywxMsgSendTask::where($this->searchWhere)->count();
|
|
}
|
|
}
|