20201112
This commit is contained in:
@@ -146,6 +146,34 @@ class Major extends Controller {
|
||||
$this->major_obj->where("major_id", $data['major_id'])->update(['major_state' => 1]);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 选择期刊领域
|
||||
* @description 选择期刊领域
|
||||
* @author wangjinlei
|
||||
* @url /api/Major/getMajorForAddArticle
|
||||
* @method POST
|
||||
*
|
||||
* @param name:journal_id type:int require:1 desc:期刊id
|
||||
* @param name:major_id type:int require:1 desc:领域id
|
||||
*
|
||||
*/
|
||||
public function getMajorForAddArticle(){
|
||||
$data = $this->request->post();
|
||||
$journal_info = $this->journal_obj->where('journal_id',$data['journal_id'])->find();
|
||||
$majors = $this->major_to_journal_obj
|
||||
->field("t_major.*")
|
||||
->join("t_major",'t_major.major_id = t_major_to_journal.major_id','left')
|
||||
->where("t_major_to_journal.journal_issn",$journal_info['issn'])
|
||||
->where("t_major.pid",$data['major_id'])
|
||||
->where("t_major.major_type",0)
|
||||
->where("t_major.major_state",0)
|
||||
->select();
|
||||
$re['majors'] = $majors;
|
||||
return jsonSuccess($re);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取领域树
|
||||
|
||||
Reference in New Issue
Block a user