|
|
@@ -60,7 +60,8 @@
|
|
|
inner join order_don od
|
|
|
on od.user_id = s.user_id
|
|
|
where od.status not in ('close', 'noPayment', 'refund')
|
|
|
- and is_fixed_distribute = 1
|
|
|
+ and od.is_fixed_distribute = 1
|
|
|
+ and od.relation_id != 0
|
|
|
group by goods_id
|
|
|
order by max(money) desc limit 1) limit 1
|
|
|
</select>
|