Merge pull request 'update' (#101) from zhangwei into master

Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/101
This commit is contained in:
wei1990 2023-09-01 15:56:22 +08:00
commit 28565c1fa9

View File

@ -79,6 +79,9 @@ class VehicleContractController extends BaseAdminController
$where[] = ['contract_no','like','%'.$param['contract_no'].'%'];
}
if(isset($param['status']) && in_array($param['status'],[0,1])){
if($param['status'] == 1){
$where[] = ['status','in', '1,2,3'];
}
$where[] = ['status','=', $param['status']];
}else{
$where[] = ['status','in', '0,1,2,3'];