|
|
|
@@ -12,7 +12,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`coupon_id`,`merchant_id`,`parameter`,`create_date`,`update_date`,`status` |
|
|
|
`id`,`product_id`,`merchant_id`,`parameter`,`create_date`,`update_date`,`status` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -29,7 +29,7 @@ |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != merchantId "> |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
@@ -58,7 +58,7 @@ |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxCouponMerchant" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns" /> from wx_user_channel |
|
|
|
select <include refid="allColumns" /> from wx_coupon_merchant |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
|