自动化审稿邀请审稿人邮件模版调整
This commit is contained in:
@@ -176,6 +176,7 @@ class Reviewer
|
||||
//查询文章所属领域
|
||||
$aWhere['state'] = 0;
|
||||
$aMajor = json_decode($this->getArticleMajor($aWhere),true);
|
||||
|
||||
$aMajorId = empty($aMajor['data']) ? [] : $aMajor['data'];
|
||||
if(empty($aMajorId)){
|
||||
return json_encode(array('status' => 1,'msg' => 'No field found for the article','data' => []));
|
||||
@@ -194,6 +195,7 @@ class Reviewer
|
||||
// 先查询符合专业条件的审稿人ID
|
||||
$aWhere = ['state' => 0, 'major_id' => ['in', $aMajorId]];
|
||||
$sMajorQuery = Db::name('major_to_user')->field('user_id')->where($aWhere)->buildSql();
|
||||
|
||||
// 查询符合公司条件的审稿人ID,确保去重
|
||||
$aWhere = ['state' => 0, 'company' => ['<>', $sCompany]];
|
||||
if(!empty($aBlack) && !empty($aParam['not_choose_id'])){
|
||||
@@ -312,7 +314,8 @@ class Reviewer
|
||||
return json_encode(['status' => 2,'msg' => 'Please select the article to query']);
|
||||
}
|
||||
//查询数据库
|
||||
$aMajor = Db::name('major_to_article')->where('article_id',$iArticleId)->column('major_id');
|
||||
$aWhere = ['article_id' => $iArticleId,'state' => 0];
|
||||
$aMajor = Db::name('major_to_article')->where($aWhere)->column('major_id');
|
||||
return json_encode(['status' => 1,'msg' => 'success','data' => $aMajor]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user