|
@@ -27,20 +27,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectLiveCouponUserList" parameterType="LiveCouponUser" resultMap="LiveCouponUserResult">
|
|
<select id="selectLiveCouponUserList" parameterType="LiveCouponUser" resultMap="LiveCouponUserResult">
|
|
|
- <include refid="selectLiveCouponUserVo"/>
|
|
|
|
|
|
|
+ select lcu.id, lcu.coupon_id, lcu.user_id, lcu.coupon_title, lcu.coupon_price, lcu.use_min_price, lcu.create_time, lcu.update_time, lcu.limit_time,
|
|
|
|
|
+ lcu.use_time, lcu.type, lcu.status, lcu.is_fail, lcu.is_del,lcu.goods_id, fu.nick_name,fu.phone
|
|
|
|
|
+ from live_coupon_user lcu LEFT JOIN fs_user fu ON lcu.user_id = fu.user_id
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="couponId != null "> and coupon_id = #{couponId}</if>
|
|
|
|
|
- <if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
|
- <if test="couponTitle != null and couponTitle != ''"> and coupon_title = #{couponTitle}</if>
|
|
|
|
|
- <if test="couponPrice != null "> and coupon_price = #{couponPrice}</if>
|
|
|
|
|
- <if test="useMinPrice != null "> and use_min_price = #{useMinPrice}</if>
|
|
|
|
|
- <if test="limitTime != null "> and limit_time = #{limitTime}</if>
|
|
|
|
|
- <if test="useTime != null "> and use_time = #{useTime}</if>
|
|
|
|
|
- <if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
|
|
- <if test="status != null "> and status = #{status}</if>
|
|
|
|
|
- <if test="isFail != null "> and is_fail = #{isFail}</if>
|
|
|
|
|
- <if test="isDel != null "> and is_del = #{isDel}</if>
|
|
|
|
|
- <if test="goodsId != null "> and goods_id = #{goodsId}</if>
|
|
|
|
|
|
|
+ <if test="couponId != null "> and lcu.coupon_id = #{couponId}</if>
|
|
|
|
|
+ <if test="userId != null "> and lcu.user_id = #{userId}</if>
|
|
|
|
|
+ <if test="couponTitle != null and couponTitle != ''"> and lcu.coupon_title = #{couponTitle}</if>
|
|
|
|
|
+ <if test="couponPrice != null "> and lcu.coupon_price = #{couponPrice}</if>
|
|
|
|
|
+ <if test="useMinPrice != null "> and lcu.use_min_price = #{useMinPrice}</if>
|
|
|
|
|
+ <if test="limitTime != null "> and lcu.limit_time = #{limitTime}</if>
|
|
|
|
|
+ <if test="useTime != null "> and lcu.use_time = #{useTime}</if>
|
|
|
|
|
+ <if test="type != null and type != ''"> and lcu.type = #{type}</if>
|
|
|
|
|
+ <if test="status != null "> and lcu.status = #{status}</if>
|
|
|
|
|
+ <if test="isFail != null "> and lcu.is_fail = #{isFail}</if>
|
|
|
|
|
+ <if test="isDel != null "> and lcu.is_del = #{isDel}</if>
|
|
|
|
|
+ <if test="goodsId != null "> and lcu.goods_id = #{goodsId}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|