@@ -59,6 +59,7 @@
and cu.user_id = #{userId}
and cu.status = 'unused'
and cu.channel != 'exCode'
+ and cu.valid_start_time > now()
<if test="isRenew != null and isRenew">
and cp.is_renew = #{isRenew}
</if>