获取期刊加检索条件

This commit is contained in:
chengxl
2025-05-14 16:16:52 +08:00
parent 8cdc73c28b
commit 71f3e289be

View File

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