48 lines
950 B
PHP
48 lines
950 B
PHP
<?php
|
|
|
|
namespace app\common\repositories\marketing;
|
|
|
|
use app\common\dao\marketing\AgentBrokerageDao;
|
|
use app\common\repositories\BaseRepository;
|
|
|
|
|
|
class AgentBrokerageRepository extends BaseRepository{
|
|
|
|
protected $dao;
|
|
|
|
public function __construct(AgentBrokerageDao $dao){
|
|
$this->dao = $dao;
|
|
}
|
|
/**
|
|
* Common: 获取信息列表
|
|
* Author: wu-hui
|
|
* Time: 2024/01/26 20:38
|
|
* @param array $params
|
|
* @param int $page
|
|
* @param int $limit
|
|
* @return array
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
* @throws \think\db\exception\DbException
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
*/
|
|
public function getList(array $params,int $page,int $limit):array{
|
|
$query = $this->dao->searchList($params);
|
|
$count = $query->count();
|
|
$list = $query->page($page,$limit)->select();
|
|
|
|
return compact('count','list');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|