1
This commit is contained in:
@@ -260,7 +260,7 @@ class Article extends Controller {
|
|||||||
->field("j_article.*")
|
->field("j_article.*")
|
||||||
->join("j_journal_stage","j_journal_stage.journal_stage_id = j_article.journal_stage_id","left")
|
->join("j_journal_stage","j_journal_stage.journal_stage_id = j_article.journal_stage_id","left")
|
||||||
->where("j_article.article_id", "in", object_to_array(json_decode($article_info['related'])))
|
->where("j_article.article_id", "in", object_to_array(json_decode($article_info['related'])))
|
||||||
->where("j_journal_stage.stage_year",">",date("Y")-2)
|
// ->where("j_journal_stage.stage_year",">",date("Y")-2)
|
||||||
->where('j_article.state', 0)
|
->where('j_article.state', 0)
|
||||||
->select();
|
->select();
|
||||||
if ($article_info['keywords'] != '' && count($res_rel) < 5) {
|
if ($article_info['keywords'] != '' && count($res_rel) < 5) {
|
||||||
|
|||||||
@@ -760,7 +760,7 @@ class Publish extends Controller {
|
|||||||
public function getCiteDate() {
|
public function getCiteDate() {
|
||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
// $data['journal_id'] = 1;
|
// $data['journal_id'] = 1;
|
||||||
$list = $this->article_cite_obj->where('journal_id', $data['journal_id'])->select();
|
$list = $this->article_cite_obj->where('journal_id', $data['journal_id'])->where("state",1)->where("is_wos",1)->select();
|
||||||
$frag = [];
|
$frag = [];
|
||||||
$frag['country'] = [];
|
$frag['country'] = [];
|
||||||
$frag['topic'] = [];
|
$frag['topic'] = [];
|
||||||
@@ -770,12 +770,17 @@ class Publish extends Controller {
|
|||||||
foreach ($list as $v) {
|
foreach ($list as $v) {
|
||||||
$cache_article = $this->article_obj->where('article_id', $v['article_id'])->find();
|
$cache_article = $this->article_obj->where('article_id', $v['article_id'])->find();
|
||||||
//判断国家
|
//判断国家
|
||||||
$cou_res = $this->checkCountry($cache_article);
|
if($v['is_china']==2){
|
||||||
if ($cou_res == 'n') {
|
|
||||||
isset($frag['country']['n']) ? $frag['country']['n']++ : $frag['country']['n'] = 1;
|
|
||||||
} else {
|
|
||||||
isset($frag['country']['w']) ? $frag['country']['w']++ : $frag['country']['w'] = 1;
|
isset($frag['country']['w']) ? $frag['country']['w']++ : $frag['country']['w'] = 1;
|
||||||
|
}else{
|
||||||
|
isset($frag['country']['n']) ? $frag['country']['n']++ : $frag['country']['n'] = 1;
|
||||||
}
|
}
|
||||||
|
// $cou_res = $this->checkCountry($cache_article);
|
||||||
|
// if ($cou_res == 'n') {
|
||||||
|
// isset($frag['country']['n']) ? $frag['country']['n']++ : $frag['country']['n'] = 1;
|
||||||
|
// } else {
|
||||||
|
// isset($frag['country']['w']) ? $frag['country']['w']++ : $frag['country']['w'] = 1;
|
||||||
|
// }
|
||||||
//判断领域
|
//判断领域
|
||||||
$topic_res = $this->checkTopic($cache_article);
|
$topic_res = $this->checkTopic($cache_article);
|
||||||
foreach ($topic_res as $key => $val) {
|
foreach ($topic_res as $key => $val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user