|
@@ -2,7 +2,7 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.fuint.repository.mapper.MtUserCouponMapper">
|
|
<mapper namespace="com.fuint.repository.mapper.MtUserCouponMapper">
|
|
<select id="getSendNum" resultType="java.lang.Long">
|
|
<select id="getSendNum" resultType="java.lang.Long">
|
|
- select count(*) from mt_user_coupon t where t.COUPON_ID = #{couponId}
|
|
|
|
|
|
+ select count(*) from mt_user_coupon t where t.COUPON_ID = #{couponId} AND t.STATUS != 'D'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getPeopleNumByCouponId" resultType="com.fuint.repository.bean.CouponNumBean">
|
|
<select id="getPeopleNumByCouponId" resultType="com.fuint.repository.bean.CouponNumBean">
|
|
@@ -50,7 +50,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findUserCouponDetail" resultType="com.fuint.repository.model.MtUserCoupon">
|
|
<select id="findUserCouponDetail" resultType="com.fuint.repository.model.MtUserCoupon">
|
|
- SELECT * FROM mt_user_coupon t WHERE t.COUPON_ID = #{couponId} AND t.USER_ID = #{userId} ORDER BY t.ID DESC
|
|
|
|
|
|
+ SELECT * FROM mt_user_coupon t WHERE t.COUPON_ID = #{couponId} AND t.USER_ID = #{userId} and t.STATUS != 'D' ORDER BY t.ID DESC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getUserCouponListByExpireTime" resultType="com.fuint.repository.model.MtUserCoupon">
|
|
<select id="getUserCouponListByExpireTime" resultType="com.fuint.repository.model.MtUserCoupon">
|