优化查询
This commit is contained in:
parent
1bb6aff8b0
commit
f8a4f0f71e
@ -192,7 +192,7 @@ class UserBillDao extends BaseDao
|
||||
return UserBill::getDB()
|
||||
->when(isset($where['now_money']) && in_array($where['now_money'], [0, 1, 2]), function ($query) use ($where) {
|
||||
if ($where['now_money'] == 0)
|
||||
$query->where('category', 'now_money')->whereIn('type', ['pay_product', 'recharge', 'sys_inc_money', 'sys_dec_money', 'brokerage', 'presell', 'refund', 'zhibo_reward_inc', 'zhibo_reward_dec']);
|
||||
$query->whereIn('category', ['now_money','brokerage'])->whereIn('type', ['pay_product', 'recharge', 'sys_inc_money', 'sys_dec_money', 'brokerage', 'presell', 'refund', 'zhibo_reward_inc', 'zhibo_reward_dec','order_one']);
|
||||
else if ($where['now_money'] == 1)
|
||||
$query->where('category', 'now_money')->whereIn('type', ['pay_product', 'sys_dec_money', 'presell', 'zhibo_reward_dec']);
|
||||
else if ($where['now_money'] == 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user