admin
2019-08-27 e6764831a890de26fcfebb4fb8f3a22e9f8cc816
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponMapper.xml
@@ -157,4 +157,19 @@
      AND (usc_state_activate = 0 OR usc_state_activate is null)
  </select>
  
  <select id="getIncludeExchange" resultMap="BaseResultMap">
   SELECT * FROM yeshi_ec_user_system_coupon
   WHERE usc_state_activate = 1 AND usc_state = 1
        AND usc_uid = #{uid} AND usc_source in
        <foreach collection="list" item="item" open="(" close=")"
         separator=",">#{item}</foreach>
  </select>
  <select id="getIncludeNotExchange" resultMap="BaseResultMap">
   SELECT * FROM yeshi_ec_user_system_coupon
   WHERE usc_state_activate = 1 AND usc_state = 1
        AND usc_uid = #{uid} AND usc_source not in
        <foreach collection="list" item="item" open="(" close=")"
         separator=",">#{item}</foreach>
  </select>
</mapper>