Browse Source

筛选状态增加条件

duqinya 6 years ago
parent
commit
d0daffe890
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Repositories/CmsContentTemplateSetRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -417,7 +417,7 @@ class CmsContentTemplateSetRepository {
 
     public function getTemplate($cityId)
     {
-        return $this->cmsContentTemplate->select('id','title','apply_type')->where(['city_id'=>$cityId,'deleted_at'=>null])->orderBy('apply_type','asc')->get();
+        return $this->cmsContentTemplate->select('id','title','apply_type')->where(['status'=>0,'city_id'=>$cityId,'deleted_at'=>null])->orderBy('apply_type','asc')->get();
 
     }