From 71f3e289beab5780c8c11526a9bc4daab008de6d Mon Sep 17 00:00:00 2001 From: chengxl Date: Wed, 14 May 2025 16:16:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=9F=E5=88=8A=E5=8A=A0?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/master/controller/Journal.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/application/master/controller/Journal.php b/application/master/controller/Journal.php index fbf2fdc..cf7122c 100644 --- a/application/master/controller/Journal.php +++ b/application/master/controller/Journal.php @@ -96,13 +96,24 @@ class Journal extends Controller /** * 获取全部期刊 */ + // public function getJournals() + // { + // $jouranls = $this->journal_obj->where('state', 0)->select(); + // $re['journals'] = $jouranls; + // return jsonSuccess($re); + // } public function getJournals() { - $jouranls = $this->journal_obj->where('state', 0)->select(); + //根据条件搜索 + $aParam = $this->request->post(); + $aWhere['state'] = 0; + if(!empty($aParam['issn'])){ + $aWhere['issn'] = ['in',$aParam['issn']]; + } + $jouranls = $this->journal_obj->where($aWhere)->select(); $re['journals'] = $jouranls; return jsonSuccess($re); } - /** * 获取分期通过期刊 */