物品归还
This commit is contained in:
@@ -52,7 +52,15 @@ class InvRequisitionService
|
||||
$config['order']['id'] = 'desc';
|
||||
break;
|
||||
case 'index':
|
||||
$config['where']['applicant_id'] = $request->user->uid;
|
||||
if(isset($p['status']) && $p['status']){
|
||||
$config['where']['status'] = $p['status'];
|
||||
}
|
||||
if(isset($p['applicant_id']) && $p['applicant_id'] == 'self'){
|
||||
$config['where']['applicant_id'] = $request->user->uid;
|
||||
|
||||
}elseif(isset($p['applicant_id']) && $p['applicant_id']){
|
||||
$config['where']['applicant_id'] = $p['applicant_id'];
|
||||
}
|
||||
$config['order']['id'] = 'desc';
|
||||
break;
|
||||
case 'show':
|
||||
|
||||
Reference in New Issue
Block a user