20201112
This commit is contained in:
@@ -153,6 +153,9 @@ class Publish extends Controller{
|
||||
* @param name:end type:string require:1 desc:结束时间
|
||||
*
|
||||
* @return dates:数据@
|
||||
* @dates SGRSL:审稿人数量
|
||||
* @dates SUBJOURNAL:订阅期刊数
|
||||
* @dates SUBTOPIC:订阅话题数
|
||||
* @dates LYL:录用率
|
||||
* @dates CC:查重
|
||||
* @dates WS:外审
|
||||
@@ -162,8 +165,14 @@ class Publish extends Controller{
|
||||
$data = $this->request->post();
|
||||
$pa['start'] = $data['start'];
|
||||
$pa['end'] = $data['end'];
|
||||
$res = myPost(self::TJ_URL,$pa);
|
||||
return $res;
|
||||
$res = $this->object_to_array(json_decode(myPost(self::TJ_URL,$pa)));
|
||||
foreach ($res as $k =>$v){
|
||||
$cache_info = $this->journal_obj->where('issn',$v['issn'])->find();
|
||||
$res[$k]['SUBJOURNAL'] = $this->subscribe_journal_obj->where('journal_id',$cache_info['journal_id'])->where('state',0)->count();
|
||||
$topics = $this->journal_topic_obj->where('journal_id',$cache_info['journal_id'])->where('state',0)->column('journal_topic_id');
|
||||
$res[$k]['SUBTOPIC'] = $this->subscribe_topic_obj->where('topic_id','in',$topics)->where('state',0)->count();
|
||||
}
|
||||
return jsonSuccess($res) ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user