This commit is contained in:
wangjinlei
2022-04-13 17:39:11 +08:00
parent f658f816cd
commit 0ef7a481d8

View File

@@ -4,6 +4,7 @@ namespace app\master\controller;
use think\Controller;
use think\Db;
use think\Validate;
/**
* @title 客座期刊
@@ -112,6 +113,24 @@ class Special extends Controller {
return jsonSuccess($re);
}
/**
* 获取期刊的专刊列表
*/
public function getSpecialByIssn(){
$data = $this->request->post();
$rule = new Validate([
'journal_issn' => 'require'
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$journal_info = $this->journal_obj->where('issn',$data['journal_issn'])->find();
$list = $this->journal_special_obj->where('journal_id',$journal_info['journal_id'])->where('state',2)->select();
$re['specials'] = $list;
return jsonSuccess($re);
}
/**
* @title 客座期刊(更改状态)
* @description 客座期刊(更改状态)