<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * Date: 2018/5/21
 * Time: 下午5:18
 */

namespace common\models;


class PushhouseType extends Common
{

    public function rules()
    {
        return [

        ];
    }

    public function boutiquevillaList($id,$limit)
    {
       return self::find()->where(['previd'=>$id,'type'=>3,'state'=>1])->limit($limit)->orderBy(['sort' => SORT_DESC, 'create_at' => SORT_DESC])->asArray()->all();
    }
}