1
This commit is contained in:
@@ -240,6 +240,26 @@ class Special extends Controller {
|
|||||||
return jsonSuccess([]);
|
return jsonSuccess([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取客座期刊信息通过主键
|
||||||
|
*/
|
||||||
|
public function getSpecialDetailById(){
|
||||||
|
$data = $this->request->post();
|
||||||
|
$rule = new Validate([
|
||||||
|
'journal_special_id' => 'require'
|
||||||
|
]);
|
||||||
|
if(!$rule->check($data)){
|
||||||
|
return jsonError($rule->getError());
|
||||||
|
}
|
||||||
|
$special = $this->journal_special_obj
|
||||||
|
->field('j_journal_special.*,j_journal.title journal_title,j_journal.issn journal_issn')
|
||||||
|
->join("j_journal",'j_journal.journal_id = j_journal_special.journal_id','left')
|
||||||
|
->where('j_journal_special.journal_special_id',$data['journal_special_id'])
|
||||||
|
->find();
|
||||||
|
$re['special'] = $special;
|
||||||
|
return jsonSuccess($re);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @title 客座期刊编辑(更改编辑)
|
* @title 客座期刊编辑(更改编辑)
|
||||||
* @description 客座期刊编辑(更改编辑)
|
* @description 客座期刊编辑(更改编辑)
|
||||||
|
|||||||
Reference in New Issue
Block a user