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