123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- /**
- *
- * @author: wuhaotian<442384644@qq.com>
- * @day: 2019/12/07
- */
- namespace app\models\member;
- use app\admin\model\user\User;
- use app\models\store\StoreOrderStatus;
- use app\models\store\StorePink;
- use app\models\user\UserBill;
- use app\models\user\UserSpread;
- use crmeb\basic\BaseModel;
- use crmeb\repositories\PaymentRepositories;
- use crmeb\traits\ModelTrait;
- use think\db\exception\DataNotFoundException;
- use think\db\exception\DbException;
- use think\db\exception\ModelNotFoundException;
- use think\db\Where;
- /**
- * Class UserGroup
- * @package app\admin\model\user
- */
- class MemberGrade extends BaseModel
- {
- /**
- * 数据表主键
- * @var string
- */
- protected $pk = 'id';
- /**
- * 模型名称
- * @var string
- */
- protected $name = 'member_grade';
- use ModelTrait;
- public static function getList($where)
- {
- $data = self::page((int)$where['page'], (int)$where['limit'])->select()->each(function ($item) {
- $item['type'] = ($item['type'] == 1 ? '个人会员' : '企业会员');
- });
- $count = $data->count();
- return compact('count', 'data');
- }
- }
|