20201112
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取录用率
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user