Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangjinlei
2025-10-13 17:36:11 +08:00
17 changed files with 2382 additions and 93 deletions

View File

@@ -536,6 +536,22 @@ class Article extends Base
$article_res['majors'] = $majors;
//查询文章作者信息
$author_res = $this->article_author_obj->where('article_id', $data['articleId'])->where('state', 0)->select();
//查询作者scopus chengxiaoling 20260924 start
if(!empty($author_res)){
$aEmail = array_unique(array_column($author_res, 'email'));
$aWhere = ['email' => ['in',$aEmail]];
$aUserData = Db::name('user')->field('user_id,email,scopus_index,scopus_website,google_index,wos_index')->where($aWhere)->select();
$aUserData = empty($aUserData) ? [] : array_column($aUserData, null,'email');
foreach ($author_res as $key => $value) {
$aUserInfo = empty($aUserData[$value['email']]) ? [] : $aUserData[$value['email']];
$author_res[$key]['scopus_index'] = isset($aUserInfo['scopus_index']) ? $aUserInfo['scopus_index'] : '';
$author_res[$key]['scopus_website'] = empty($aUserInfo['scopus_website']) ? '' : $aUserInfo['scopus_website'];
$author_res[$key]['google_index'] = isset($aUserInfo['google_index']) ? $aUserInfo['google_index'] : '';
$author_res[$key]['wos_index'] = isset($aUserInfo['wos_index']) ? $aUserInfo['wos_index'] : '';
$author_res[$key]['user_id'] = empty($aUserInfo['user_id']) ? 0 : $aUserInfo['user_id'];
}
}
//查询作者scopus chengxiaoling 20260924 end
//查询转投信息
$transfer_res = $this->article_transfer_obj->where('article_id', $data['articleId'])->select();
//查询建议转投详情