20201112
This commit is contained in:
@@ -240,6 +240,7 @@ class Publish extends Controller{
|
||||
$journals[$k]['FWL'] = $this->getFWL($v['journal_id'],$start,$end);
|
||||
$journals[$k]['LX'] = $this->getLX($v['journal_id'],$start,$end);
|
||||
$journals[$k]['GJH'] = $this->getGJH($v['journal_id'],$start,$end);
|
||||
$journals[$k]['GNW'] = $this->getGNW($v['journal_id'],$start,$end);
|
||||
$journals[$k]['CK'] = $this->getCK($v['journal_id']);
|
||||
$journals[$k]['BW'] = $this->getBW($v['journal_id']);
|
||||
$journals[$k]['DY'] = $this->subscribe_journal_obj->where('journal_id',$v['journal_id'])->where('state',0)->count();
|
||||
@@ -401,6 +402,34 @@ class Publish extends Controller{
|
||||
return $frag;
|
||||
}
|
||||
|
||||
private function getGNW($journal_id,$start,$end){
|
||||
$stages = $this->journal_stage_obj
|
||||
->where('journal_id',$journal_id)
|
||||
->where('is_publish',1)
|
||||
->where('state',0)
|
||||
->column('journal_stage_id');
|
||||
$arts = $this->article_obj->where('journal_id',$journal_id)->where('journal_stage_id','in',$stages)->where('ctime','>',$start)->where('ctime','<=',$end)->where('state',0)->select();
|
||||
$frag = [];
|
||||
foreach ($arts as $k => $v){
|
||||
$ca_aus = $this->article_author_obj->where('article_id',$v['article_id'])->where('state',0)->where('author_country','<>','China')->find();
|
||||
if($ca_aus==null){
|
||||
if(isset($frag['n'])){
|
||||
$frag['n'] += 1;
|
||||
}else{
|
||||
$frag['n'] = 1;
|
||||
}
|
||||
} else{
|
||||
if(isset($frag['w'])){
|
||||
$frag['w'] += 1;
|
||||
}else{
|
||||
$frag['w'] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $frag;
|
||||
|
||||
}
|
||||
|
||||
private function getGJH($journal_id,$start,$end){
|
||||
$stages = $this->journal_stage_obj
|
||||
->where('journal_id',$journal_id)
|
||||
|
||||
Reference in New Issue
Block a user