1
This commit is contained in:
@@ -92,6 +92,31 @@ class Reviewer extends Base
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**创建复审实例
|
||||
* @return void
|
||||
*/
|
||||
public function startRepeatReviewer(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"art_rev_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$article_reviewer_info = $this->article_reviewer_obj->where('art_rev_id',$data['art_rev_id'])->find();
|
||||
$reviewer_info = $this->user_obj->where('user_id',$article_reviewer_info['reviewer_id'])->find();
|
||||
$article_info = $this->article_obj->where('article_id',$article_reviewer_info['article_id'])->find();
|
||||
|
||||
//添加实例数据
|
||||
$insert['art_rev_id'] = $data['art_rev_id'];
|
||||
$insert['ctime'] = time();
|
||||
$this->article_reviewer_repeat_obj->insert($insert);
|
||||
|
||||
//发送邮件至审稿人,提醒到系统内复审稿件
|
||||
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取历史审稿实例列表
|
||||
* @description 获取历史审稿实例列表
|
||||
|
||||
Reference in New Issue
Block a user