This commit is contained in:
wangjinlei
2021-07-15 10:23:11 +08:00
parent e8862b2807
commit 0fd546dfbb
5 changed files with 128 additions and 49 deletions

View File

@@ -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) ;
}
/**