update
This commit is contained in:
parent
88571803de
commit
1b4bbbfafb
@ -236,13 +236,13 @@
|
|||||||
$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'])){
|
if(!empty($params['status'])){
|
||||||
$where[] = match ((int)$params['status']){
|
$where[] = match ($params['status']){
|
||||||
1=> ['check_status','=',0], //待审核
|
'1'=> ['check_status','=',0], //待审核
|
||||||
2=> ['check_status','=',1], //审核中
|
'2'=> ['check_status','=',1], //审核中
|
||||||
3=> [['check_status','=',2],['pay_admin_id','=',0],['pay_time','=',0]], //审批通过,待打款
|
'3'=> [['check_status','=',2],['pay_admin_id','=',0],['pay_time','=',0]], //审批通过,待打款
|
||||||
4=> ['check_status','=',3], //审核不通过
|
'4'=> ['check_status','=',3], //审核不通过
|
||||||
5=> ['check_status','=',4], //撤销审核
|
'5'=> ['check_status','=',4], //撤销审核
|
||||||
6=> [['check_status','=',2],['pay_admin_id','>',0],['pay_time','>',0]], //审批通过,已打款
|
'6'=> [['check_status','=',2],['pay_admin_id','>',0],['pay_time','>',0]], //审批通过,已打款
|
||||||
};
|
};
|
||||||
}else{
|
}else{
|
||||||
$where[] = ['check_status','in','0,1,2,3,4'];
|
$where[] = ['check_status','in','0,1,2,3,4'];
|
||||||
@ -693,9 +693,9 @@
|
|||||||
$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'])){
|
if(!empty($params['status'])){
|
||||||
$where[] = match ((int)$params['status']){
|
$where[] = match ($params['status']){
|
||||||
1=> [['check_status','=',2],['pay_admin_id','=',0],['pay_time','=',0]], //审批通过,待打款
|
'1'=> [['check_status','=',2],['pay_admin_id','=',0],['pay_time','=',0]], //审批通过,待打款
|
||||||
2=> [['check_status','=',2],['pay_admin_id','>',0],['pay_time','>',0]], //审批通过,已打款
|
'2'=> [['check_status','=',2],['pay_admin_id','>',0],['pay_time','>',0]], //审批通过,已打款
|
||||||
};
|
};
|
||||||
}else{
|
}else{
|
||||||
$where[] = ['check_status','=',2];
|
$where[] = ['check_status','=',2];
|
||||||
|
@ -169,14 +169,14 @@
|
|||||||
$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'])){
|
if(!empty($params['status'])){
|
||||||
$where[] = match ((int)$params['status']){
|
$where[] = match ($params['status']){
|
||||||
1=> ['check_status','=',0], //待审核
|
'1'=> ['check_status','=',0], //待审核
|
||||||
2=> ['check_status','=',1], //审核中
|
'2'=> ['check_status','=',1], //审核中
|
||||||
3=> [['check_status','=',2]], //审批通过,待开具
|
'3'=> [['check_status','=',2]], //审批通过,待开具
|
||||||
4=> ['check_status','=',3], //审核不通过
|
'4'=> ['check_status','=',3], //审核不通过
|
||||||
5=> ['check_status','=',4], //撤销审核
|
'5'=> ['check_status','=',4], //撤销审核
|
||||||
6=> [['check_status','=',5]], //审批通过,已开具
|
'6'=> [['check_status','=',5]], //审批通过,已开具
|
||||||
7=> [['check_status','=',10]], //已作废
|
'7'=> [['check_status','=',10]], //已作废
|
||||||
};
|
};
|
||||||
}else{
|
}else{
|
||||||
$where[] = ['check_status','in','0,1,2,3,4,5,10'];
|
$where[] = ['check_status','in','0,1,2,3,4,5,10'];
|
||||||
@ -680,10 +680,10 @@
|
|||||||
$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'])){
|
if(!empty($params['status'])){
|
||||||
$where[] = match ((int)$params['status']){
|
$where[] = match ($params['status']){
|
||||||
1=> ['check_status','=',2], //审批通过,待开具
|
'1'=> ['check_status','=',2], //审批通过,待开具
|
||||||
2=> ['check_status','=',5], //审批通过,已开具
|
'2'=> ['check_status','=',5], //审批通过,已开具
|
||||||
3=> [['check_status','=',10]], //已作废
|
'3'=> [['check_status','=',10]], //已作废
|
||||||
};
|
};
|
||||||
}else{
|
}else{
|
||||||
$where[] = ['check_status','in','2,5,10'];
|
$where[] = ['check_status','in','2,5,10'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user