Authored by gemingdan

加字段old_user_coupon_pic

... ... @@ -36,6 +36,8 @@ public class OrderShareActivityBO extends BaseModel{
private Integer endTime;
private String couponPic;
private String oldUserCouponPic;
private String buttonLink;
... ... @@ -168,5 +170,13 @@ public class OrderShareActivityBO extends BaseModel{
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public String getOldUserCouponPic() {
return oldUserCouponPic;
}
public void setOldUserCouponPic(String oldUserCouponPic) {
this.oldUserCouponPic = oldUserCouponPic;
}
}
... ...
... ... @@ -35,6 +35,8 @@ public class OrderShareActivity extends BaseModel {
private Integer endTime;
private String couponPic;
private String oldUserCouponPic;
private String buttonLink;
... ... @@ -177,4 +179,12 @@ public class OrderShareActivity extends BaseModel {
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public String getOldUserCouponPic() {
return oldUserCouponPic;
}
public void setOldUserCouponPic(String oldUserCouponPic) {
this.oldUserCouponPic = oldUserCouponPic;
}
}
\ No newline at end of file
... ...
... ... @@ -21,6 +21,7 @@
<result column="begin_time" property="beginTime" jdbcType="INTEGER" />
<result column="end_time" property="endTime" jdbcType="INTEGER" />
<result column="coupon_pic" property="couponPic" jdbcType="VARCHAR" />
<result column="old_user_coupon_pic" property="oldUserCouponPic" jdbcType="VARCHAR" />
<result column="button_link" property="buttonLink" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
... ... @@ -28,7 +29,7 @@
<sql id="Base_Column_List">
id, activity_name, show_pic, is_show_pic, h5_title, activity_normal_pic, activity_end_pic, share_img_url,
share_title, share_content, activity_desc, begin_time, end_time,
coupon_pic, button_link,
coupon_pic,old_user_coupon_pic, button_link,
create_time,status
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
... ... @@ -55,7 +56,7 @@
is_show_pic, h5_title,
activity_normal_pic, activity_end_pic, share_img_url,
share_title, share_content, activity_desc,
begin_time, end_time, coupon_pic,
begin_time, end_time, coupon_pic,old_user_coupon_pic,
button_link, create_time,status)
values (#{activityName,jdbcType=VARCHAR},
#{showPic,jdbcType=VARCHAR},
... ... @@ -64,7 +65,7 @@
#{activityEndPic,jdbcType=VARCHAR}, #{shareImgUrl,jdbcType=VARCHAR},
#{shareTitle,jdbcType=VARCHAR}, #{shareContent,jdbcType=VARCHAR},
#{activityDesc,jdbcType=VARCHAR},
#{beginTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, #{couponPic,jdbcType=VARCHAR},
#{beginTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, #{couponPic,jdbcType=VARCHAR}, #{oldUserCouponPic,jdbcType=VARCHAR},
#{buttonLink,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER},status)
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.coupon.dal.model.OrderShareActivity">
... ... @@ -110,6 +111,9 @@
<if test="couponPic != null">
coupon_pic = #{couponPic,jdbcType=VARCHAR},
</if>
<if test="oldUserCouponPic != null">
old_user_coupon_pic = #{oldUserCouponPic,jdbcType=VARCHAR},
</if>
<if test="buttonLink != null">
button_link = #{buttonLink,jdbcType=VARCHAR},
</if>
... ... @@ -137,6 +141,7 @@
begin_time = #{beginTime,jdbcType=INTEGER},
end_time = #{endTime,jdbcType=INTEGER},
coupon_pic = #{couponPic,jdbcType=VARCHAR},
old_user_coupon_pic = #{oldUserCouponPic,jdbcType=VARCHAR},
button_link = #{buttonLink,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=INTEGER},
status=#{status}
... ...