Browse Source

过滤软删除

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

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

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