jiangchengfeiyi-houduan/src/main/resources/mapper/CouponMapper.xml

9 lines
430 B
XML
Raw Normal View History

2024-11-01 05:56:56 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cultural.heritage.mapper.CouponMapper">
2024-11-01 14:03:01 +00:00
<select id="verifyIsReachTheUpperLimit" resultType="Integer">
select sum(quantity) from exchange_record where userId = #{userId} and couponId = #{couponId}
</select>
2024-11-01 05:56:56 +00:00
</mapper>