|
|
@@ -8,7 +8,7 @@
|
|
|
where id = (select od.goods_id
|
|
|
from (select id from yh_shop where user_id = #{userId} limit 1) s
|
|
|
inner join order_don od
|
|
|
- on od.ysh_id = s.id and od.status not in ('close', 'noPayment', 'refund')
|
|
|
+ on od.yhs_id = s.id and od.status not in ('close', 'noPayment', 'refund')
|
|
|
group by od.goods_id
|
|
|
order by max(od.money) desc limit 1)
|
|
|
</select>
|