作者 anyv
1 个管道 的构建 通过 耗费 0 秒

删除

... ... @@ -45,13 +45,13 @@ class AboutController extends HomeBaseController{
//显示核心团队
public function team(){
$data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id',34) -> select();
$data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id=34 and b.delete_time=0') -> select();
/* foreach ($data as $key => $value){
$value['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($value['post_content']));
}*/
$this -> assign('data',$data);
$data1 = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id',35) -> select();
$data1 = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id=35 and b.delete_time=0') -> select();
$this -> assign('data1',$data1);
return $this -> fetch();
... ...
... ... @@ -40,7 +40,7 @@ class IndexController extends HomeBaseController
$this -> assign('fuwu_data',$fuwu_data);
//首页澳德咨询
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where('category_id',22) -> order('b.id desc') -> limit(5) -> select();
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where('category_id = 22 and delete_time = 0') -> order('b.id desc') -> limit(5) -> select();
$this -> assign('new_data',$new_data[0]);
foreach ($new_data as $key => $val){
... ...
... ... @@ -10,7 +10,7 @@ class NewController extends HomeBaseController{
//显示澳德新闻列表
public function aonew(){
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where("a.category_id=22") -> paginate(8);
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where("a.category_id=22 and b.delete_time=0") -> paginate(8);
$this -> assign('data',$new_data);
return $this -> fetch();
... ... @@ -40,7 +40,7 @@ class NewController extends HomeBaseController{
//显示行业动向新闻列表
public function indu_new(){
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where("a.category_id=23") -> paginate(8);
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where("a.category_id=23 and b.delete_time=0") -> paginate(8);
$this -> assign('data',$new_data);
return $this -> fetch();
... ...