修改查询
This commit is contained in:
parent
d3a44b336b
commit
b39bf47b89
@ -289,10 +289,10 @@ class UserLogic extends BaseLogic
|
|||||||
//返还金明细 -todo back
|
//返还金明细 -todo back
|
||||||
$query = VipFlow::with('store')->where(['user_id'=>$uid]);
|
$query = VipFlow::with('store')->where(['user_id'=>$uid]);
|
||||||
if($params['mark'] == 1){
|
if($params['mark'] == 1){
|
||||||
$query->where('status',1);
|
$query->where('status',0);
|
||||||
}
|
}
|
||||||
if($params['mark'] == 2){
|
if($params['mark'] == 2){
|
||||||
$query->where('status',0);
|
$query->where('status',1);
|
||||||
}
|
}
|
||||||
$count = $query->count();
|
$count = $query->count();
|
||||||
$data = $query
|
$data = $query
|
||||||
|
Loading…
x
Reference in New Issue
Block a user