审稿人推荐调整

This commit is contained in:
chengxl
2026-02-13 15:51:17 +08:00
parent 1e210b2ba1
commit da658e6880

View File

@@ -210,11 +210,19 @@ class Reviewer
$sMajorQuery = Db::name('major_to_user')->field('user_id')->where($aWhere)->buildSql();
// 查询符合公司条件的审稿人ID确保去重
$aWhere = ['state' => 0, 'company' => ['<>', $sCompany]];
$aWhere = ['state' => 0];
if(!empty($sCompany)){
$aWhere['company'] = ['<>',$sCompany];
}
if(!empty($aAuthorCompany)){
array_push($aAuthorCompany, $sCompany);
$aAuthorCompany = array_unique($aAuthorCompany);
$aWhere['company'] = ['not in', $aAuthorCompany];
$aAuthorCompany = array_filter($aAuthorCompany, function($v) {
return trim((string)$v) !== '';
});
if(!empty($aAuthorCompany)){
$aWhere['company'] = ['not in', $aAuthorCompany];
}
}
if(!empty($aBlack) && !empty($aParam['not_choose_id'])){
$aBlack = array_unique(array_merge($aBlack, $aParam['not_choose_id']));