quanwei
3 days ago 73b874c72ad55eb9eef21c36160ac0de58f0189e
admin/app/shop/model/branch/ActivityUser.php
@@ -34,6 +34,7 @@
        $model = $this->alias('auser')
            ->field('auser.*, user.nickName, user.avatarUrl')
            ->join('user', 'user.user_id = auser.user_id')
            ->with(['activity'=>['branch'],'branch'])
            ->where('auser.is_delete', '=', 0)
            ->order(['auser.create_time' => 'desc']);
        // 查询条件
@@ -43,6 +44,16 @@
        if (!empty($params['activity_id'])) {
            $model = $model->where('auser.activity_id', '=', $params['activity_id']);
        }
        if (!empty($params['pay_status'])) {
            if ($params['pay_status']>0){
                $model = $model->where('auser.pay_status', '=', $params['pay_status']);
            }
        }
        if (isset($params['status'])) {
            if ($params['status']>-1) {
                $model = $model->where('auser.status', '=', $params['status']);
            }
        }
        // 如果不分页
        if (!$is_page) {
            if ($limit) {