|
@@ -136,7 +136,7 @@ class ProductOrder extends Model
|
|
|
->where('b.is_show', ProductLists::Normal)
|
|
->where('b.is_show', ProductLists::Normal)
|
|
|
->whereIn('a.status', [self::Paid, self::Transferred, self::Freeze])
|
|
->whereIn('a.status', [self::Paid, self::Transferred, self::Freeze])
|
|
|
->where('a.product_id', $rwaProductId)
|
|
->where('a.product_id', $rwaProductId)
|
|
|
- ->group('a.user_id')->having('a.total_num>='.$rwaNum)
|
|
|
|
|
|
|
+ ->group('a.user_id')->having('total_num>='.$rwaNum)
|
|
|
->field('a.id,a.user_id,count(a.num) as total_num')
|
|
->field('a.id,a.user_id,count(a.num) as total_num')
|
|
|
->select();
|
|
->select();
|
|
|
}
|
|
}
|