@@ -13,5 +13,7 @@
and o.status not in ('close','noPayment','refund')
and o.order_type = 2 and o.relation_id = #{relationId}
inner join goods_don_sku sku on sku.id = o.sku_id
+ order by sku.months desc,sku.gpt_limit_num desc
+ limit 1
</select>
</mapper>