代理商

This commit is contained in:
“wanyongkang”
2021-02-21 18:18:26 +08:00
parent 41e1742f82
commit a53ec5cf96
14 changed files with 732 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace app\agent\model;
use fastphp\base\Model;
class AgentScore extends Model
{
protected $table = 'agent_score';
/**
* 按照页数获取数据
* @param $fields 'id,count(1)...'
* @param $order 'id desc'/'id asc'
* @param $limit = '100' 限制查询100条
* $limit = '2,100' 查询第二页 100条数据
*/
public function getAgentListPage($where = [],$where_str = '', $fields = '*', $order = 'id desc', $limit = '50')
{
return $this->field($fields)->where($where)->where($where_str)->order($order)->limit($limit)->fetchAll();
}
}