This commit is contained in:
wangjinlei
2021-07-09 09:52:21 +08:00
parent b8a94e91c7
commit 234745046d
2 changed files with 12 additions and 2 deletions

View File

@@ -692,6 +692,7 @@ class Article extends Controller {
$tt .= 'Thank you for your consideration.<br> Look forward for your reply.<br>';
$tt .= '<a href="http://submission.tmrjournals.com/submission?journal='.$journal_info['alias'].'">ReviewerCenter</a><br>';
$tt .= 'Your username:'.$reviewer_info['account'].'<br><br>';
$tt .= 'Your original password:123456qwe , if you have reset the password, please login with the new one or click the "<a href="https://submission.tmrjournals.com/retrieve">forgot password</a>".<br>';
$tt .= 'Sincerely,<br>Editorial Office<br>';
$tt .= $journal_info['title'].'<br>';
$tt .= 'Email:'.$journal_info['email'].'<br>';

View File

@@ -42,18 +42,19 @@ class Super extends Controller{
$this->staff_to_journal_obj = Db::name('staff_to_journal');
}
public function main() {
public function main() {
$data = $this->request->post();
$start_time = strtotime($data['start']);
$end_time = strtotime($data['end'].' 23:59:59');
$list = $this->journal_obj->where('state',0)->select();
foreach ($list as $k => $v){
$list[$k]['SGRSL'] = $this->getSGRSL($v['journal_id']);
$list[$k]['LYL'] = $this->getLYL($v['journal_id'],$start_time,$end_time);
$list[$k]['CC'] = $this->getCC($v['journal_id'],$start_time,$end_time);
$list[$k]['WS'] = $this->getWS($v['journal_id'],$start_time,$end_time);
$list[$k]['SJ'] = $this->getSJ($v['journal_id'],$start_time,$end_time);
}
return jsonSuccess($list);
return json($list);
}
public function getAllArticle(){
@@ -97,6 +98,14 @@ class Super extends Controller{
return jsonSuccess($re);
}
/**
* 获取审稿人数量
*/
private function getSGRSL($journal_id){
$res = $this->reviewer_to_journal_obj->where('journal_id',$journal_id)->where('state',0)->select();
return count($res);
}
/**
* 获取录用率
*/