| | |
| | | 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>
|