|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCouponChannel"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> |
|
|
|
<result column="coupon_id" jdbcType="BIGINT" property="couponId" /> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" /> |
|
|
|
@@ -19,7 +18,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`merchant_id`,`coupon_id`,`coupon_status`,`type`,`title`,`target_ad`,`business`,`begin_time`,`end_time`,`status`,`create_date`,`update_date`,`sub_target_id` |
|
|
|
`id`,`tenant_id`,`coupon_id`,`coupon_status`,`type`,`title`,`target_ad`,`business`,`begin_time`,`end_time`,`status`,`create_date`,`update_date`,`sub_target_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -33,10 +32,6 @@ |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != merchantId "> |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != couponId "> |
|
|
|
and `coupon_id` = #{couponId} |
|
|
|
</if> |
|
|
|
@@ -111,7 +106,6 @@ |
|
|
|
<resultMap id="CouponChannelVoMap" type="com.iformall.domain.vo.WxCouponChannelVo"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> |
|
|
|
<result column="coupon_id" jdbcType="BIGINT" property="couponId" /> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" /> |
|
|
|
@@ -128,7 +122,6 @@ |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="findVoListForCouponChannel2" parameterType="com.iformall.domain.po.WxCouponChannel" resultMap="CouponChannelVoMap"> |
|
|
|
select <include refid="allColumns" /> from wx_coupon_channel |
|
|
|
where 1 = 1 |
|
|
|
@@ -141,10 +134,6 @@ |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != merchantId "> |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != couponId "> |
|
|
|
and `coupon_id` = #{couponId} |
|
|
|
</if> |
|
|
|
|