This commit is contained in:
2024-12-07 15:22:45 +08:00
parent 09c68c015b
commit 387af834ae
4 changed files with 27 additions and 15 deletions

View File

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