自动查重
This commit is contained in:
@@ -2817,7 +2817,28 @@ class EmailClient extends Base
|
||||
break;
|
||||
|
||||
case 1: // 主编(预留,本期不实现)
|
||||
break;
|
||||
case 4: // 作者(预留)
|
||||
Db::name("article_author")->alias('aa')
|
||||
->join('t_user u', 'u.email = aa.email', 'inner')
|
||||
->join("t_article a","a.article_id = aa.article_id","left")
|
||||
->join('t_user_reviewer_info uri', 'uri.reviewer_id = u.user_id', 'left')
|
||||
->where('a.journal_id', $journalId)
|
||||
->where('u.email', '<>', '')
|
||||
->where('u.unsubscribed', 0);
|
||||
break;
|
||||
case 6: //获取往期的青年编委2025年以前的,中国人
|
||||
$now = strtotime('2025-01-01');
|
||||
$query = Db::name('user_to_yboard')->alias('y')
|
||||
->join('t_user u', 'u.user_id = y.user_id', 'inner')
|
||||
->join('t_user_reviewer_info uri', 'uri.reviewer_id = u.user_id', 'left')
|
||||
->where('y.journal_id', $journalId)
|
||||
->where('y.state', 0)
|
||||
->where('y.start_date', '<=', $now)
|
||||
->where('uri.country', 'China')
|
||||
->where('u.email', '<>', '')
|
||||
->where('u.unsubscribed', 0);
|
||||
break;//
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user