|
|
|
@@ -157,12 +157,14 @@ |
|
|
|
<result column="valid_start_date" jdbcType="TIMESTAMP" property="validStartDate"/> |
|
|
|
<result column="valid_end_date" jdbcType="TIMESTAMP" property="validEndDate"/> |
|
|
|
<result column="valid_days" jdbcType="INTEGER" property="validDays"/> |
|
|
|
|
|
|
|
<result column="qr_code" property="qrCode"/> |
|
|
|
|
|
|
|
<collection column="{productId=coupon_id}" property="merchantVoList" |
|
|
|
ofType="com.iformall.domain.vo.WxMerchantVo" |
|
|
|
javaType="java.util.List" |
|
|
|
select="com.iformall.mapper.WxCouponMerchantMapper.findMerchantNameList" > |
|
|
|
</collection> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="findVoList" parameterType="com.iformall.domain.po.WxCouponChannel" resultMap="CouponChannelVoMap"> |
|
|
|
@@ -174,6 +176,7 @@ |
|
|
|
|
|
|
|
<select id="findVoListByMerchant" parameterType="com.iformall.domain.po.WxCouponChannel" resultMap="CouponChannelVoMap"> |
|
|
|
select <include refid="CouponChannelVoColumns" /> |
|
|
|
,mer.qr_code |
|
|
|
from wx_coupon_channel cc |
|
|
|
join wx_coupon_merchant cm |
|
|
|
on cm.product_id = cc.coupon_id |
|
|
|
@@ -182,6 +185,7 @@ |
|
|
|
and cm.merchant_id=#{merchantId} |
|
|
|
</if> |
|
|
|
left join wx_coupon c on cc.coupon_id = c.id |
|
|
|
left join wx_merchant mer on cm.merchant_id = mer.id |
|
|
|
where cc.`target_ad` in (1,2,5,6,7) |
|
|
|
<if test="status != null"> |
|
|
|
and cc.status=#{status} |
|
|
|
|