This commit is contained in:
@@ -53,6 +53,7 @@ class Super extends Controller{
|
||||
$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);
|
||||
$list[$k]['JST'] = $this->getJST($v['journal_id'],$start_time,$end_time);
|
||||
}
|
||||
return json($list);
|
||||
}
|
||||
@@ -131,6 +132,28 @@ class Super extends Controller{
|
||||
return $all==0?0:$js/$all;
|
||||
}
|
||||
|
||||
private function getJST($journal_id,$start_time,$end_time){
|
||||
$list = $this->article_obj->where("journal_id",$journal_id)
|
||||
->where('rtime','>',$start_time)
|
||||
->where('rtime','<=',$end_time)
|
||||
->select();
|
||||
$f = 0;
|
||||
foreach ($list as $v){
|
||||
$f += ($v['rtime']-$v["ctime"]);
|
||||
}
|
||||
$list1 = $this->article_obj->where("journal_id",$journal_id)
|
||||
->where('rstime','>',$start_time)
|
||||
->where('rstime','<=',$end_time)
|
||||
->select();
|
||||
foreach ($list1 as $v){
|
||||
$f += ($v['rstime']-$v["ctime"]);
|
||||
}
|
||||
|
||||
|
||||
$frag = count($list)==0?0:intval(($f/(count($list) + count($list1)))/(24*60*60));
|
||||
return $frag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取查重异常
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user