From 234745046d8e1a546ef2cc38874d7763f4144387 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Fri, 9 Jul 2021 09:52:21 +0800 Subject: [PATCH] 20201112 --- application/api/controller/Article.php | 1 + application/api/controller/Super.php | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index ef6b857..99b0d3c 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -692,6 +692,7 @@ class Article extends Controller { $tt .= 'Thank you for your consideration.
Look forward for your reply.
'; $tt .= 'Reviewer Center
'; $tt .= 'Your username:'.$reviewer_info['account'].'

'; + $tt .= 'Your original password:123456qwe , if you have reset the password, please login with the new one or click the "forgot password".
'; $tt .= 'Sincerely,
Editorial Office
'; $tt .= $journal_info['title'].'
'; $tt .= 'Email:'.$journal_info['email'].'
'; diff --git a/application/api/controller/Super.php b/application/api/controller/Super.php index 48d0206..2ae2cd0 100644 --- a/application/api/controller/Super.php +++ b/application/api/controller/Super.php @@ -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); + } + /** * 获取录用率 */