From cf8d49ac38420e43383de3ef5c0aefde3e0fb62f Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Fri, 12 May 2023 11:22:16 +0800 Subject: [PATCH] 1 --- application/master/controller/Submision.php | 77 +++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 application/master/controller/Submision.php diff --git a/application/master/controller/Submision.php b/application/master/controller/Submision.php new file mode 100644 index 0000000..bc1506a --- /dev/null +++ b/application/master/controller/Submision.php @@ -0,0 +1,77 @@ +admin_obj = Db::name('admin'); + $this->journal_obj = Db::name('journal'); + $this->article_obj = Db::name('article'); + $this->article_author_obj = Db::name('article_author'); + $this->article_organ_obj = Db::name('article_organ'); + $this->article_ltai_obj = Db::name('article_ltai'); + $this->article_cite_obj = Db::name('article_cite'); + $this->author_to_organ_obj = Db::name('article_author_to_organ'); + $this->article_to_topic_obj = Db::name('article_to_topic'); + $this->journal_topic_obj = Db::name('journal_topic'); + $this->journal_stage_obj = Db::name('journal_stage'); + $this->journal_special_obj = Db::name('journal_special'); + $this->country_obj = Db::name('country'); + $this->subscribe_journal_obj = Db::name('subscribe_journal'); + $this->subscribe_topic_obj = Db::name('subscribe_topic'); + $this->base_topic_obj = Db::name('base_topic'); + $this->subscribe_base_topic_obj = Db::name('subscribe_base_topic'); + $this->medicament_obj = Db::name('medicament'); + $this->article_to_medicament_obj = Db::name('ArticleToMedicament'); + } + + public function getJournalStages(){ + $data = $this->request->post(); + $rule = new Validate([ + 'issn'=>'require' + ]); + if(!$rule->check($data)){ + return jsonError($rule->getError()); + } + $journal_info = $this->journal_obj->where('issn',$data['issn'])->find(); + $list = $this->journal_stage_obj->where('journal_id',$journal_info['journal_id'])->where('state',0)->select(); + $re['stages'] = $list; + return jsonSuccess($re); + } + + +}