yujian
2019-02-27 b3fce41f7960a21c707788aa87448c3e4de82da9
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponMapper.xml
@@ -90,6 +90,12 @@
    </set> where usc_id = #{id,jdbcType=BIGINT}
  </update>
  
  <update id="activateCouponByType">
   UPDATE yeshi_ec_user_system_coupon SET usc_state_activate = 1
   WHERE usc_uid = #{uid} AND usc_coupon_id = #{couponId}
      AND (usc_state_activate = 0 OR usc_state_activate is null)
  </update>
  <select id="getUserCouponList" resultMap="BaseResultMap">
   SELECT * FROM `yeshi_ec_user_system_coupon` uc
   WHERE uc.`usc_uid`= #{uid}