This commit is contained in:
wangjinlei
2024-09-19 10:14:49 +08:00
parent 91024a98c5
commit d55da85588

View File

@@ -316,7 +316,33 @@ class Journal extends Controller
$flag['yc_article_num'] = count($yz_year_list);
$flag['yc_cite_num'] = $cite_yz_count;
$flag['yc_if'] = count($yz_year_list)==0?0:($cite_yz_count*12.5)/(count($yz_year_list)*date("m"));
$flag['yc_if'] = count($yz_year_list)==0?0:($cite_yz_count*13)/(count($yz_year_list)*date("m"));
$yz_year_q = [date("Y")-2,date("Y")-3];
$stages_q = $this->journal_stage_obj->where("journal_id",$journal['journal_id'])->whereIn("stage_year",$yz_year_q)->column("journal_stage_id");
$yz_year_list_q = $this->article_obj
->whereIn("journal_stage_id",$stages_q)
->where("type = 'Article' or type = 'Review' or type = 'Mini Review' or type = 'Letter'")
->where("state",0)->select();
$yz_year_list_all_q = $this->article_obj->whereIn("journal_stage_id",$stages_q)->where("state",0)->select();
$article_ids_q = [];
foreach ($yz_year_list_all_q as $v){
$article_ids_q[] = $v['article_id'];
}
$cite_yz_count_q = $this->article_cite_obj
->whereIn("article_id",$article_ids_q)
->whereLike('vol',"%".(date("Y")-1)."%")
->where("is_wos",1)
->where("state",1)->count();
$flag['yc_article_num_q'] = count($yz_year_list_q);
$flag['yc_cite_num_q'] = $cite_yz_count_q;
$flag['yc_if_q'] = count($yz_year_list_q)==0?0:$cite_yz_count_q/(count($yz_year_list_q));
$journals[$k]['cite'] = $flag;
}