获取期刊加检索条件
This commit is contained in:
@@ -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()
|
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;
|
$re['journals'] = $jouranls;
|
||||||
return jsonSuccess($re);
|
return jsonSuccess($re);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取分期通过期刊
|
* 获取分期通过期刊
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user