1
This commit is contained in:
@@ -259,6 +259,33 @@ class Journal extends Controller
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
public function getCiteListPForSubmission(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"issn"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$journal_info = $this->journal_obj->where("issn",$data['issn'])->find();
|
||||
if(date("m")==1){
|
||||
$p_m_time = strtotime((date("Y")-1)."-12-1");
|
||||
}else{
|
||||
$p_m_time = strtotime(date("Y")."-".(date("m")-1)."-1");
|
||||
}
|
||||
$s_time = strtotime(date("Y-m")."-1");
|
||||
$list1 = $this->article_cite_obj
|
||||
->field("j_article.title,j_article.doi,j_article.article_id,j_article_cite.article_cite_id,j_article_cite.factor,j_article_cite.article_name,j_article_cite.doi article_doi,j_article_cite.journal_name,j_article_cite.vol,j_article_cite.is_wos,j_article_cite.is_china")
|
||||
->join("j_article","j_article.article_id = j_article_cite.article_id","left")
|
||||
->where("j_article_cite.journal_id",$journal_info['journal_id'])
|
||||
->where("j_article_cite.state",1)
|
||||
->where("j_article_cite.ctime",">",$p_m_time)
|
||||
->where("j_article_cite.ctime","<",$s_time)
|
||||
->select();
|
||||
$re['list'] = $list1;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
public function getCiteDataForSubmission(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
@@ -290,6 +317,25 @@ class Journal extends Controller
|
||||
}
|
||||
}
|
||||
$flag['month_num'] = $month_num."/".count($list1);
|
||||
//上个月引用
|
||||
if(date("m")==1){
|
||||
$p_m_time = strtotime((date("Y")-1)."-12-1");
|
||||
}else{
|
||||
$p_m_time = strtotime(date("Y")."-".(date("m")-1)."-1");
|
||||
}
|
||||
$list_m_p = $this->article_cite_obj
|
||||
->where("journal_id",$journal['journal_id'])
|
||||
->where("state",1)
|
||||
->where("ctime",">",$p_m_time)
|
||||
->where("ctime","<",$s_time)
|
||||
->select();
|
||||
$m_p_month_num = 0;
|
||||
foreach ($list1 as $item) {
|
||||
if($item['is_wos']==1){
|
||||
$m_p_month_num++;
|
||||
}
|
||||
}
|
||||
$flag['p_month_num'] = $m_p_month_num."/".count($list_m_p);
|
||||
//今年引用
|
||||
// $y_time = strtotime(date("Y")."-1-1");
|
||||
// $list3 = $this->article_cite_obj->where("journal_id",$journal['journal_id'])->where("state",1)->where("ctime",">",$y_time)->select();
|
||||
|
||||
Reference in New Issue
Block a user