20201112
This commit is contained in:
@@ -21,6 +21,7 @@ class Article extends Controller {
|
||||
protected $article_to_topic_obj = '';
|
||||
protected $journal_topic_obj = '';
|
||||
protected $journal_stage_obj = '';
|
||||
protected $journal_special_obj = '';
|
||||
protected $country_obj = '';
|
||||
|
||||
public function __construct(\think\Request $request = null) {
|
||||
@@ -35,6 +36,7 @@ class Article extends Controller {
|
||||
$this->article_to_topic_obj = Db::name('article_to_topic');
|
||||
$this->journal_topic_obj = Db::name('journal_topic');
|
||||
$this->journal_stage_obj = Db::name('journal_stage');
|
||||
$this->journal_special_obj = Db::name('journal_special');
|
||||
$this->country_obj = Db::name('country');
|
||||
}
|
||||
|
||||
@@ -396,6 +398,7 @@ class Article extends Controller {
|
||||
* @param name:tradition_tag type:string require:1 desc:封皮标签
|
||||
* @param name:tradition type:string require:1 desc:封皮简介
|
||||
* @param name:journal_stage_id type:int require:1 desc:期刊分期id
|
||||
* @param name:journal_special_id type:int require:1 desc:客座期刊id
|
||||
* @param name:doi type:string require:1 desc:doi
|
||||
* @param name:abstract type:string require:1 desc:简介
|
||||
* @param name:keywords type:string require:1 desc:关键字
|
||||
@@ -421,6 +424,7 @@ class Article extends Controller {
|
||||
$updata['icon'] = $data['icon'];
|
||||
$updata['title'] = $data['title'];
|
||||
$updata['journal_stage_id'] = $data['journal_stage_id'];
|
||||
$updata['journal_special_id'] = $data['journal_special_id'];
|
||||
$updata['tradition_tag'] = $data['tradition_tag'];
|
||||
$updata['tradition'] = $data['tradition'];
|
||||
$updata['doi'] = $data['doi'];
|
||||
@@ -518,12 +522,6 @@ class Article extends Controller {
|
||||
*/
|
||||
public function getArticleList(){
|
||||
$data = $this->request->post();
|
||||
// $data['editor_id'] = 6;
|
||||
// $data['journal_id'] = 0;
|
||||
// $data['journal_stage_id'] = 0;
|
||||
// $data['seach'] = '';
|
||||
// $data['pageIndex'] = 1;
|
||||
// $data['pageSize'] = 80;
|
||||
$where['j_article.state'] = 0;
|
||||
if(intval($data['journal_id'])!==0){
|
||||
$where['j_article.journal_id'] = $data['journal_id'];
|
||||
@@ -698,5 +696,24 @@ class Article extends Controller {
|
||||
return json(['code'=>0,'msg'=>'success','data'=>['countrys'=>$res]]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取客座话题
|
||||
* @description 获取客座话题
|
||||
* @author wangjinlei
|
||||
* @url /master/Article/getJournalSpecials
|
||||
* @method POST
|
||||
*
|
||||
* @param name:journal_id type:int require:1 desc:期刊id
|
||||
*
|
||||
* @return specials:客座期刊array#
|
||||
*/
|
||||
public function getJournalSpecials(){
|
||||
$data = $this->request->post();
|
||||
$list = $this->journal_special_obj->where('journal_id',$data['journal_id'])->where('state',0)->select();
|
||||
|
||||
$re['specials'] = $list;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user