获取客座期刊文章引用次数及话题

This commit is contained in:
chengxl
2025-09-26 17:17:19 +08:00
parent d7ff74942c
commit 33700d6ecb

View File

@@ -394,6 +394,7 @@ class Special extends Controller {
->where('j_article.journal_special_id',$data['journal_special_id']) ->where('j_article.journal_special_id',$data['journal_special_id'])
->where('j_article.state',0) ->where('j_article.state',0)
->select(); ->select();
//获取作者 //获取作者
foreach ($list as $k => $v) { foreach ($list as $k => $v) {
$stage_info = $this->journal_stage_obj->where('journal_stage_id',$v['journal_stage_id'])->find(); $stage_info = $this->journal_stage_obj->where('journal_stage_id',$v['journal_stage_id'])->find();
@@ -404,6 +405,11 @@ class Special extends Controller {
$list[$k]['authortitle'] = $this->getAuthor($v); $list[$k]['authortitle'] = $this->getAuthor($v);
$list[$k]['mains'] = getArticleMains($v['article_id']); $list[$k]['mains'] = getArticleMains($v['article_id']);
//文章被引用次数和话题 chengxiaoling 20250926 start
$list[$k]["cite_num"] = Db::name("article_cite")->where("article_id",$v['article_id'])->where("state",1)->where("is_wos",1)->count();
$cache_topic = Db::name("article_to_topic")->field('j_journal_topic.*')->join('j_journal_topic', 'j_journal_topic.journal_topic_id = j_article_to_topic.topic_id', 'left')->where('j_article_to_topic.article_id', $v['article_id'])->where('j_article_to_topic.state', 0)->select();
$list[$k]['topic'] = $cache_topic;
//文章被引用次数 chengxiaoling 20250926 end
} }
$re['articles'] = $list; $re['articles'] = $list;
return jsonSuccess($re); return jsonSuccess($re);