This commit is contained in:
wangjinlei
2024-09-18 13:12:00 +08:00
parent 939ffa192f
commit ca7b19395b
2 changed files with 14 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ class Journal extends Base {
public function getJournalByeditor() public function getJournalByeditor()
{ {
$user_id = $this->request->post('user_id'); $user_id = $this->request->post('user_id');
$list = $this->journal_obj->where('editor_id',$user_id)->select(); $list = $this->journal_obj->where('editor_id',$user_id)->where("state",0)->select();
$re['journals'] = $list; $re['journals'] = $list;
return jsonSuccess($re); return jsonSuccess($re);
} }

View File

@@ -118,6 +118,19 @@ class User extends Base
}else{ }else{
$where['email'] = ["<>",""]; $where['email'] = ["<>",""];
} }
if(isset($data['doi'])&&$data['doi']!=''){
if(strpos($data['doi'],"10.53388/")){
$doi = substr($data['doi'],9);
}else{
$doi = trim($data['doi']);
}
$p_info = $this->production_article_obj->where("doi",$doi)->where("state",2)->find();
if($p_info&&$p_info['article_id']>0){
$where['article_id'] = $p_info['article_id'];
}else{
return jsonError("not find");
}
}
$authors = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->page($data['page'],$data['limit'])->select(); $authors = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->page($data['page'],$data['limit'])->select();
$count = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->count(); $count = $this->article_author_obj->where($where)->group("email")->order("art_aut_id desc")->count();
foreach ($authors as $k =>$v){ foreach ($authors as $k =>$v){