feat: 用户累计充值可得免费播放全集权限

This commit is contained in:
张松
2024-12-18 17:07:13 +08:00
parent 4184193ee6
commit 5a10f03a4a
7 changed files with 114 additions and 1 deletions

View File

@@ -319,4 +319,12 @@
and create_time > #{time}
</if>
</select>
<select id="countPayOrderByDay" resultType="java.lang.Integer">
SELECT count(*)
FROM orders
WHERE orders.user_id = #{userId}
AND orders.`status` = 1
AND orders.`pay_way` = 9
AND orders.create_time > DATE_FORMAT(CURDATE(), '%Y-%m-%d 00:00:00')
</select>
</mapper>