PushhouseType.php 458 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/5/21
  6. * Time: 下午5:18
  7. */
  8. namespace common\models;
  9. class PushhouseType extends Common
  10. {
  11. public function rules()
  12. {
  13. return [
  14. ];
  15. }
  16. public function boutiquevillaList($id,$limit)
  17. {
  18. return self::find()->where(['previd'=>$id,'type'=>3,'state'=>1])->limit($limit)->orderBy(['sort' => SORT_DESC, 'create_at' => SORT_DESC])->asArray()->all();
  19. }
  20. }