排序修改

This commit is contained in:
chengxl
2025-09-28 11:21:41 +08:00
parent 8336a89c61
commit 3ed629e2af

View File

@@ -48,7 +48,7 @@ class Cite extends Controller
//处理数据-获取通讯作者信息 ,'is_report' => 1
$aArticleId = array_column($aArticleCite, 'article_id');
$aWhere = ['article_id' => ['in',$aArticleId],'state' => 0];
$aArticleAuthor = Db::name('article_author')->field('article_id,author_name,email')->where($aWhere)->select();
$aArticleAuthor = Db::name('article_author')->field('article_id,author_name,email,is_report')->where($aWhere)->order('is_report desc,article_id asc')->select();
if(empty($aArticleAuthor)){
return json_encode(['status' => 1,'msg' => 'No corresponding author information found for the article','data' => []]);
}