1
This commit is contained in:
@@ -122,8 +122,9 @@ class User extends Base
|
||||
$count = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->count();
|
||||
foreach ($authors as $k =>$v){
|
||||
$articles = $this->article_author_obj
|
||||
->field("t_article_author.*,t_article.title")
|
||||
->field("t_article_author.*,t_article.title,t_journal.jabbr journal_jabbr")
|
||||
->join("t_article","t_article.article_id = t_article_author.article_id","left")
|
||||
->join("t_journal","t_journal.journal_id = t_article.journal_id","left")
|
||||
->where("t_article_author.email",$v['email'])
|
||||
->where("t_article_author.state",0)
|
||||
->select();
|
||||
@@ -144,6 +145,22 @@ class User extends Base
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
public function getAuthorForArticle(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$list = $this->article_author_obj->where("article_id",$data['article_id'])->where("state",0)->select();
|
||||
$re['list'] = $list;
|
||||
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 增加青年科学家
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user