Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -582,8 +582,8 @@ class Ucenter extends Base{
|
||||
}
|
||||
|
||||
//查询文章信息
|
||||
$aArticle = $aAuthor = $aProductionArticle = [];
|
||||
$aChunksId = array_chunk($ids, 1000);
|
||||
$aArticle = $aProductionArticle = [];
|
||||
$aChunksId = array_chunk($ids, 200);
|
||||
foreach ($aChunksId as $value) {
|
||||
$articles = $this->article_obj
|
||||
->field("t_article.*,t_journal.title as journal_title,t_journal.abbr")
|
||||
@@ -593,14 +593,13 @@ class Ucenter extends Base{
|
||||
if(!empty($articles)){
|
||||
//查询生产文章主表
|
||||
$aArticleId = array_column($articles, 'article_id');
|
||||
$aProductionArticleInfo = $this->production_article_obj->field('article_id,doi')->whereIn("article_id",$aArticleId)->where("state",2)->column('doi','article_id');
|
||||
$aProductionArticleInfo = $this->production_article_obj->whereIn("article_id",$aArticleId)->where("state",2)->column('article_id,doi');
|
||||
if(!empty($aProductionArticleInfo)){
|
||||
$aProductionArticle = array_merge($aProductionArticle,$aProductionArticleInfo);
|
||||
$aProductionArticle += $aProductionArticleInfo;
|
||||
}
|
||||
}
|
||||
$aArticle = array_merge($aArticle,$articles);
|
||||
}
|
||||
|
||||
|
||||
//数据处理
|
||||
foreach ($aArticle as $k => $v){
|
||||
|
||||
Reference in New Issue
Block a user