diff --git a/app/common/service/InvRequisitionService.php b/app/common/service/InvRequisitionService.php index fe25db4..f6ee20c 100644 --- a/app/common/service/InvRequisitionService.php +++ b/app/common/service/InvRequisitionService.php @@ -61,6 +61,13 @@ class InvRequisitionService }elseif(isset($p['applicant_id']) && $p['applicant_id']){ $config['where']['applicant_id'] = $p['applicant_id']; } + if(isset($p['phase']) && $p['phase'] == 'approve'){//借用审批中 + $config['where']['status'] = ['in',[10,11,13]]; + }elseif(isset($p['phase']) && $p['phase'] == 'repaid'){//已全部归还 + $config['where']['unreturned'] = 17; + }elseif(isset($p['phase']) && $p['phase'] == 'unreturned'){ //未归还 + $config['where']['status'] = ['in',[12,14,15,16,18]]; + } $config['order']['id'] = 'desc'; break; case 'show':