|
|
@@ -88,9 +88,9 @@ class WelfareLoginc
|
|
|
$total = 0; //总数量
|
|
|
// 使用bcdiv函数进行高精度除法运算,$num除以100,保留两位小数
|
|
|
$div = bcdiv($num, 100, 2);
|
|
|
- $list = ProductOrder::where('status', ProductOrder::Paid)
|
|
|
+ $list = ProductOrder::whereIn('status', [ProductOrder::Paid, ProductOrder::Transferred, ProductOrder::Freeze])
|
|
|
->where('product_id', $rwaProductId)
|
|
|
- ->where('popular_price', '>', config('min_rwa_price'))
|
|
|
+ //->where('popular_price', '>', config('min_rwa_price'))
|
|
|
->group('user_id')->having('total_num>='.$rwa_num)
|
|
|
->field('id,user_id,count(num) as total_num')
|
|
|
->select();
|