Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangjinlei
2025-05-16 15:34:16 +08:00
2 changed files with 86 additions and 36 deletions

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