排除退款的逻辑
This commit is contained in:
parent
2a9394c145
commit
3b07baf640
@ -69,10 +69,11 @@ class OrderLogic extends BaseLogic
|
||||
|
||||
public static function dealFlexiblePrice($where,$start,$end)
|
||||
{
|
||||
$todayAmount = UserRecharge::where($where)
|
||||
//排除退款
|
||||
$todayAmount = UserRecharge::where($where)->where('status',1)
|
||||
->whereBetweenTime('create_time', $start, $end)
|
||||
->sum('price');
|
||||
$pay_price = StoreOrder::where($where)
|
||||
$pay_price = StoreOrder::where($where)->where('refund_status',0)
|
||||
->whereBetweenTime('create_time', $start, $end)
|
||||
->sum('pay_price');
|
||||
return bcadd($todayAmount, $pay_price, 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user