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); } - /** * 获取分期通过期刊 */