35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* SAAS应用系统 --- 十年开发经验汇集巨献!
|
|
* ==========================================================
|
|
* Copy right 2020-2050 成都众联思索科技有限公司,保留所有权利。
|
|
* ----------------------------------------------------------
|
|
* 官方网址: https://www.zoomtk.com
|
|
* 这不是自由软件!未经允许不得用于商业目或程序代码摘取及修改。
|
|
* 任何企业和个人未经允许对程序代码以任何形式任何目的再发布传播。
|
|
* 唯一发布渠道www.zoomtk.com;非官方渠道统一视为侵权行为。
|
|
* ==========================================================
|
|
*/
|
|
namespace addon\saasagent\model;
|
|
use app\model\BaseModel;
|
|
class PayStore extends BaseModel
|
|
{
|
|
|
|
|
|
/***
|
|
* 获取分页
|
|
* @param $condition
|
|
* @param int $page
|
|
* @param int $page_size
|
|
* @param string $field
|
|
* @param string $order
|
|
* @return array
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
* @throws \think\db\exception\DbException
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
*/
|
|
public function getPageList($condition,$page=1,$page_size=PAGE_LIST_ROWS,$field='*',$order=''){
|
|
$res= $this->where($condition)->page($page)->limit($page_size)->order($order)->field($field)->select();
|
|
return $this->success($res);
|
|
}
|
|
} |