From 91024a98c59436b30bac35737298fdc4320d3617 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Sat, 14 Sep 2024 11:36:17 +0800 Subject: [PATCH] 1 --- application/master/controller/Journal.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/application/master/controller/Journal.php b/application/master/controller/Journal.php index cc6eb6d..ac4ada7 100644 --- a/application/master/controller/Journal.php +++ b/application/master/controller/Journal.php @@ -299,13 +299,20 @@ class Journal extends Controller $yz_year = [date("Y")-1,date("Y")-2]; $stages = $this->journal_stage_obj->where("journal_id",$journal['journal_id'])->whereIn("stage_year",$yz_year)->column("journal_stage_id"); - $yz_year_list = $this->article_obj->whereIn("journal_stage_id",$stages)->where("type = 'Article' or type = 'Review' or type = 'Mini Review'")->where("state",0)->select(); + $yz_year_list = $this->article_obj + ->whereIn("journal_stage_id",$stages) + ->where("type = 'Article' or type = 'Review' or type = 'Mini Review' or type = 'Letter'") + ->where("state",0)->select(); $yz_year_list_all = $this->article_obj->whereIn("journal_stage_id",$stages)->where("state",0)->select(); $article_ids = []; foreach ($yz_year_list_all as $v){ $article_ids[] = $v['article_id']; } - $cite_yz_count = $this->article_cite_obj->whereIn("article_id",$article_ids)->whereLike('vol',"%".date("Y")."%")->where("is_wos",1)->where("state",1)->count(); + $cite_yz_count = $this->article_cite_obj + ->whereIn("article_id",$article_ids) + ->whereLike('vol',"%".date("Y")."%") + ->where("is_wos",1) + ->where("state",1)->count(); $flag['yc_article_num'] = count($yz_year_list); $flag['yc_cite_num'] = $cite_yz_count;