20201112
This commit is contained in:
@@ -74,7 +74,12 @@ class Board extends Controller {
|
||||
*/
|
||||
public function getBoardPendArticle() {
|
||||
$data = $this->request->post();
|
||||
$list = $this->article_obj->where('journal_id', $data['journal_id'])->where('state', 6)->select();
|
||||
$list = $this->article_obj
|
||||
->field('t_article.*,t_journal.title journal_title')
|
||||
->join('t_journal','t_journal.journal_id = t_article.journal_id','left')
|
||||
->where('t_article.journal_id', $data['journal_id'])
|
||||
->where('t_article.state', 6)
|
||||
->select();
|
||||
foreach ($list as $k => $v) {
|
||||
$auts = $this->article_author_obj->where('article_id', $v['article_id'])->where('state', 0)->select();
|
||||
$au = '';
|
||||
@@ -89,6 +94,14 @@ class Board extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
//加上文章领域
|
||||
foreach($list as $k => $v){
|
||||
$major = $this->reviewer_major_obj->where('major_id',$v['major_id'])->find();
|
||||
$cmajor = $this->reviewer_major_obj->where('major_id',$v['cmajor_id'])->find();
|
||||
$list[$k]['major'] = $major['title'];
|
||||
$list[$k]['cmajor'] = $cmajor['title'];
|
||||
}
|
||||
|
||||
$re['articles'] = $list;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
@@ -107,7 +120,10 @@ class Board extends Controller {
|
||||
*/
|
||||
public function getBoardHistArticles(){
|
||||
$data = $this->request->post();
|
||||
$list = $this->article_obj->where('journal_id',$data['journal_id'])->where('state',5)->select();
|
||||
$list = $this->article_obj->field('t_article.*,t_journal.title journal_title')
|
||||
->join('t_journal','t_journal.journal_id = t_article.journal_id','left')
|
||||
->where('t_article.journal_id',$data['journal_id'])
|
||||
->where('t_article.state',5)->select();
|
||||
foreach ($list as $k => $v) {
|
||||
$auts = $this->article_author_obj->where('article_id', $v['article_id'])->where('state', 0)->select();
|
||||
$au = '';
|
||||
@@ -149,6 +165,29 @@ class Board extends Controller {
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 青年编委详情页--获取青年编委期刊列表
|
||||
* @description 青年编委详情页--获取青年编委期刊列表
|
||||
* @author wangjinlei
|
||||
* @url /api/Board/getYboardJournals
|
||||
* @method POST
|
||||
*
|
||||
* @param name:user_id type:int require:1 desc:编委用户id
|
||||
*
|
||||
* @return journals:期刊列表#
|
||||
*/
|
||||
public function getYboardJournals(){
|
||||
$data = $this->request->post();
|
||||
$journals = $this->reviewer_to_journal_obj
|
||||
->join('t_journal','t_journal.journal_id = t_reviewer_to_journal.journal_id','left')
|
||||
->where('t_reviewer_to_journal.reviewer_id',$data['user_id'])
|
||||
->where('t_reviewer_to_journal.is_yboard',1)
|
||||
->where('t_reviewer_to_journal.state',0)
|
||||
->select();
|
||||
$re['journals'] = $journals;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 编委导入--获取官网编委
|
||||
* @description 编委导入--获取官网编委
|
||||
|
||||
Reference in New Issue
Block a user