Browse Source

优化楼盘资讯页面sql

廖泽华 4 years ago
parent
commit
c6c5d1e3c8
2 changed files with 3 additions and 2 deletions
  1. 1 0
      common/models/News.php
  2. 2 2
      注意事项.html

+ 1 - 0
common/models/News.php

@@ -267,6 +267,7 @@ class News extends Common
267 267
         $query = self::find();
268 268
         $query->select($select);
269 269
         $query->where(['pfg_news.del'=>1]);
270
+        $query->where(['pfg_news.state'=>1]);
270 271
         $query->andFilterWhere(['pfg_news.hid'=>$this->hid]);
271 272
         if(!empty($nids)){
272 273
             $query->orFilterWhere(['pfg_news.id'=>$nids]);

+ 2 - 2
注意事项.html

@@ -1,4 +1,4 @@
1
-复制 list_nav 表
1
+<!--复制 list_nav 表-->
2 2
 <!--复制 pfg_cn_push_hothouse 表 移动站 热门楼盘-->
3
-复制 pfg_pushm_news 表
3
+<!--复制 pfg_pushm_news 表-->
4 4
 复制 pfg_push_housesale 表