发积分幂等性校验

This commit is contained in:
Guoqs
2026-01-08 10:43:15 +08:00
parent 1c37eb2f74
commit eb46b5a23b
3 changed files with 21 additions and 0 deletions

View File

@@ -150,4 +150,11 @@
from member_points_record
where id = #{id,jdbcType=BIGINT}
</delete>
<select id="countByOrderCodeAndType" resultType="int">
select count(1)
from member_points_record
where order_code = #{orderCode,jdbcType=VARCHAR}
and type = #{type,jdbcType=TINYINT}
</select>
</mapper>