浏览代码

筛选已删除

duqinya 6 年之前
父节点
当前提交
7f34ae0c1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Repositories/CmsContentTemplateSetRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

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