抽奖次数

This commit is contained in:
2025-01-03 19:10:53 +08:00
parent 886392e878
commit c6e45134d0
2 changed files with 4 additions and 3 deletions

View File

@@ -4,6 +4,6 @@
<select id="countDraw" resultType="int">
SELECT count(1) FROM `disc_spinning_record` where user_id = #{userId} and draw_day = DATE_FORMAT(CURDATE(), '%Y-%m-%d');
SELECT count(1) FROM `disc_spinning_record` where user_id = #{userId} and `source` = 'order' and draw_day = DATE_FORMAT(CURDATE(), '%Y-%m-%d');
</select>
</mapper>