This commit is contained in:
weiz 2024-05-28 15:00:15 +08:00
parent b913f7b643
commit 72f363c112

View File

@ -676,14 +676,6 @@
} }
$where[] = ['create_time','between',[strtotime($params['start_time']),strtotime($params['end_time'])]]; $where[] = ['create_time','between',[strtotime($params['start_time']),strtotime($params['end_time'])]];
} }
if(!empty($params['status'])){
$where[] = match ($params['status']){
1=> [['check_status','=',2],['pay_admin_id','=',0],['pay_time','=',0]], //审批通过,待打款
2=> [['check_status','=',2],['pay_admin_id','>',0],['pay_time','>',0]], //审批通过,已打款
};
}else{
$where[] = ['check_status','=',2];
}
if(!empty($params['status'])){ if(!empty($params['status'])){
$where[] = match ($params['status']){ $where[] = match ($params['status']){
1=> ['check_status','=',2], //审批通过,待开具 1=> ['check_status','=',2], //审批通过,待开具