...
|
...
|
@@ -20,11 +20,12 @@ |
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
<result column="status" property="status" jdbcType="TINYINT" />
|
|
|
<result column="second_screen_pic" property="secondScreenPic" jdbcType="VARCHAR" />
|
|
|
<result column="coupon_id" property="couponId" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, activity_code, activity_name, h5_title, activity_normal_pic, activity_end_pic,
|
|
|
share_img_url, share_title, share_content, pc_link, activity_desc, begin_time, end_time,
|
|
|
coupon_pic, button_link, create_time, status, second_screen_pic
|
|
|
coupon_pic, button_link, create_time, status, second_screen_pic, coupon_id
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -49,122 +50,13 @@ |
|
|
share_img_url, share_title, share_content,
|
|
|
pc_link, activity_desc, begin_time,
|
|
|
end_time, coupon_pic, button_link,
|
|
|
create_time, status)
|
|
|
create_time, status, coupon_id)
|
|
|
values (#{id,jdbcType=INTEGER}, #{activityCode,jdbcType=VARCHAR}, #{activityName,jdbcType=VARCHAR},
|
|
|
#{h5Title,jdbcType=VARCHAR}, #{activityNormalPic,jdbcType=VARCHAR}, #{activityEndPic,jdbcType=VARCHAR},
|
|
|
#{shareImgUrl,jdbcType=VARCHAR}, #{shareTitle,jdbcType=VARCHAR}, #{shareContent,jdbcType=VARCHAR},
|
|
|
#{pcLink,jdbcType=VARCHAR}, #{activityDesc,jdbcType=VARCHAR}, #{beginTime,jdbcType=INTEGER},
|
|
|
#{endTime,jdbcType=INTEGER}, #{couponPic,jdbcType=VARCHAR}, #{buttonLink,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=INTEGER}, #{status,jdbcType=TINYINT})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.coupon.dal.model.TencentMktActivity" >
|
|
|
insert into tencent_mkt_activity
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="activityCode != null" >
|
|
|
activity_code,
|
|
|
</if>
|
|
|
<if test="activityName != null" >
|
|
|
activity_name,
|
|
|
</if>
|
|
|
<if test="h5Title != null" >
|
|
|
h5_title,
|
|
|
</if>
|
|
|
<if test="activityNormalPic != null" >
|
|
|
activity_normal_pic,
|
|
|
</if>
|
|
|
<if test="activityEndPic != null" >
|
|
|
activity_end_pic,
|
|
|
</if>
|
|
|
<if test="shareImgUrl != null" >
|
|
|
share_img_url,
|
|
|
</if>
|
|
|
<if test="shareTitle != null" >
|
|
|
share_title,
|
|
|
</if>
|
|
|
<if test="shareContent != null" >
|
|
|
share_content,
|
|
|
</if>
|
|
|
<if test="pcLink != null" >
|
|
|
pc_link,
|
|
|
</if>
|
|
|
<if test="activityDesc != null" >
|
|
|
activity_desc,
|
|
|
</if>
|
|
|
<if test="beginTime != null" >
|
|
|
begin_time,
|
|
|
</if>
|
|
|
<if test="endTime != null" >
|
|
|
end_time,
|
|
|
</if>
|
|
|
<if test="couponPic != null" >
|
|
|
coupon_pic,
|
|
|
</if>
|
|
|
<if test="buttonLink != null" >
|
|
|
button_link,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="activityCode != null" >
|
|
|
#{activityCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="activityName != null" >
|
|
|
#{activityName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="h5Title != null" >
|
|
|
#{h5Title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="activityNormalPic != null" >
|
|
|
#{activityNormalPic,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="activityEndPic != null" >
|
|
|
#{activityEndPic,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="shareImgUrl != null" >
|
|
|
#{shareImgUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="shareTitle != null" >
|
|
|
#{shareTitle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="shareContent != null" >
|
|
|
#{shareContent,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pcLink != null" >
|
|
|
#{pcLink,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="activityDesc != null" >
|
|
|
#{activityDesc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="beginTime != null" >
|
|
|
#{beginTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="endTime != null" >
|
|
|
#{endTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="couponPic != null" >
|
|
|
#{couponPic,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="buttonLink != null" >
|
|
|
#{buttonLink,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
</trim>
|
|
|
#{createTime,jdbcType=INTEGER}, #{status,jdbcType=TINYINT}, #{couponId})
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.coupon.dal.model.TencentMktActivity" >
|
|
|
update tencent_mkt_activity
|
...
|
...
|
@@ -237,7 +129,8 @@ |
|
|
coupon_pic = #{couponPic,jdbcType=VARCHAR},
|
|
|
button_link = #{buttonLink,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
status = #{status,jdbcType=TINYINT}
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
coupon_id=#{couponId}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|