优惠券还原
This commit is contained in:
@@ -20,4 +20,6 @@ public interface SmsCouponHistoryMapper extends BaseMapper<SmsCouponHistory> {
|
||||
List<SmsCouponHistoryDetail> getDetailList(Long memberId);
|
||||
|
||||
int updateUseStatus(@Param("useStatus") int i, @Param("endTime") String tomorrow);
|
||||
|
||||
int updateUseStatuss(@Param("useStatus")int i, @Param("memberId") Long memberId,@Param("couponId") Long couponId);
|
||||
}
|
||||
|
||||
@@ -65,4 +65,8 @@
|
||||
<update id="updateUseStatus">
|
||||
update sms_coupon_history set use_status = #{useStatus} where end_time <= #{endTime} and use_status = 0
|
||||
</update>
|
||||
|
||||
<update id="updateUseStatuss">
|
||||
update sms_coupon_history set use_status = #{useStatus} where member_id = #{memberId} and coupon_id = #{couponId}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user