Authored by wangnan9279

有货 批量维护商品封面 fix

... ... @@ -6,19 +6,23 @@
<result column="product_skn" property="productSkn" jdbcType="INTEGER" />
<result column="begin_time" property="beginTime" jdbcType="INTEGER" />
<result column="end_time" property="endTime" jdbcType="INTEGER" />
<result column="content_one" property="contentOne" jdbcType="VARCHAR" />
<result column="content_two" property="contentTwo" jdbcType="VARCHAR" />
<result column="content_three" property="contentThree" jdbcType="VARCHAR" />
<result column="order_by" property="orderBy" jdbcType="INTEGER" />
<result column="left_image_url" property="leftImageUrl" jdbcType="VARCHAR" />
<result column="bg_image_url" property="bgImageUrl" jdbcType="VARCHAR" />
<result column="share_content" property="shareContent" jdbcType="VARCHAR" />
<result column="detail_title" property="detailTitle" jdbcType="VARCHAR" />
<result column="detail_note" property="detailNote" jdbcType="VARCHAR" />
<result column="detail_left_img" property="detailLeftImg" jdbcType="VARCHAR" />
<result column="detail_bg_img" property="detailBgImg" jdbcType="VARCHAR" />
<result column="list_title" property="listTitle" jdbcType="VARCHAR" />
<result column="list_note" property="listNote" jdbcType="VARCHAR" />
<result column="list_bg_img" property="listBgImg" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="order_by" property="orderBy" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, product_skn, begin_time, end_time, content_one, content_two, content_three, order_by,
left_image_url, bg_image_url, create_time, update_time, status
id, product_skn, begin_time, end_time, share_content, detail_title, detail_note,
detail_left_img, detail_bg_img, list_title, list_note, list_bg_img, create_time,
update_time, status, order_by
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
... ... @@ -32,15 +36,17 @@
</delete>
<insert id="insert" parameterType="com.yoho.search.dal.model.ProductCoverActivity" >
insert into product_cover_activity (id, product_skn, begin_time,
end_time, content_one, content_two,
content_three, order_by, left_image_url,
bg_image_url, create_time, update_time,
status)
end_time, share_content, detail_title,
detail_note, detail_left_img, detail_bg_img,
list_title, list_note, list_bg_img,
create_time, update_time, status,
order_by)
values (#{id,jdbcType=INTEGER}, #{productSkn,jdbcType=INTEGER}, #{beginTime,jdbcType=INTEGER},
#{endTime,jdbcType=INTEGER}, #{contentOne,jdbcType=VARCHAR}, #{contentTwo,jdbcType=VARCHAR},
#{contentThree,jdbcType=VARCHAR}, #{orderBy,jdbcType=INTEGER}, #{leftImageUrl,jdbcType=VARCHAR},
#{bgImageUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
#{status,jdbcType=TINYINT})
#{endTime,jdbcType=INTEGER}, #{shareContent,jdbcType=VARCHAR}, #{detailTitle,jdbcType=VARCHAR},
#{detailNote,jdbcType=VARCHAR}, #{detailLeftImg,jdbcType=VARCHAR}, #{detailBgImg,jdbcType=VARCHAR},
#{listTitle,jdbcType=VARCHAR}, #{listNote,jdbcType=VARCHAR}, #{listBgImg,jdbcType=VARCHAR},
#{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, #{status,jdbcType=TINYINT},
#{orderBy,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ProductCoverActivity" >
insert into product_cover_activity
... ... @@ -57,23 +63,29 @@
<if test="endTime != null" >
end_time,
</if>
<if test="contentOne != null" >
content_one,
<if test="shareContent != null" >
share_content,
</if>
<if test="contentTwo != null" >
content_two,
<if test="detailTitle != null" >
detail_title,
</if>
<if test="contentThree != null" >
content_three,
<if test="detailNote != null" >
detail_note,
</if>
<if test="orderBy != null" >
order_by,
<if test="detailLeftImg != null" >
detail_left_img,
</if>
<if test="detailBgImg != null" >
detail_bg_img,
</if>
<if test="listTitle != null" >
list_title,
</if>
<if test="leftImageUrl != null" >
left_image_url,
<if test="listNote != null" >
list_note,
</if>
<if test="bgImageUrl != null" >
bg_image_url,
<if test="listBgImg != null" >
list_bg_img,
</if>
<if test="createTime != null" >
create_time,
... ... @@ -84,6 +96,9 @@
<if test="status != null" >
status,
</if>
<if test="orderBy != null" >
order_by,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
... ... @@ -98,23 +113,29 @@
<if test="endTime != null" >
#{endTime,jdbcType=INTEGER},
</if>
<if test="contentOne != null" >
#{contentOne,jdbcType=VARCHAR},
<if test="shareContent != null" >
#{shareContent,jdbcType=VARCHAR},
</if>
<if test="contentTwo != null" >
#{contentTwo,jdbcType=VARCHAR},
<if test="detailTitle != null" >
#{detailTitle,jdbcType=VARCHAR},
</if>
<if test="contentThree != null" >
#{contentThree,jdbcType=VARCHAR},
<if test="detailNote != null" >
#{detailNote,jdbcType=VARCHAR},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=INTEGER},
<if test="detailLeftImg != null" >
#{detailLeftImg,jdbcType=VARCHAR},
</if>
<if test="detailBgImg != null" >
#{detailBgImg,jdbcType=VARCHAR},
</if>
<if test="leftImageUrl != null" >
#{leftImageUrl,jdbcType=VARCHAR},
<if test="listTitle != null" >
#{listTitle,jdbcType=VARCHAR},
</if>
<if test="bgImageUrl != null" >
#{bgImageUrl,jdbcType=VARCHAR},
<if test="listNote != null" >
#{listNote,jdbcType=VARCHAR},
</if>
<if test="listBgImg != null" >
#{listBgImg,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
... ... @@ -125,6 +146,9 @@
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ProductCoverActivity" >
... ... @@ -139,23 +163,29 @@
<if test="endTime != null" >
end_time = #{endTime,jdbcType=INTEGER},
</if>
<if test="contentOne != null" >
content_one = #{contentOne,jdbcType=VARCHAR},
<if test="shareContent != null" >
share_content = #{shareContent,jdbcType=VARCHAR},
</if>
<if test="contentTwo != null" >
content_two = #{contentTwo,jdbcType=VARCHAR},
<if test="detailTitle != null" >
detail_title = #{detailTitle,jdbcType=VARCHAR},
</if>
<if test="contentThree != null" >
content_three = #{contentThree,jdbcType=VARCHAR},
<if test="detailNote != null" >
detail_note = #{detailNote,jdbcType=VARCHAR},
</if>
<if test="orderBy != null" >
order_by = #{orderBy,jdbcType=INTEGER},
<if test="detailLeftImg != null" >
detail_left_img = #{detailLeftImg,jdbcType=VARCHAR},
</if>
<if test="leftImageUrl != null" >
left_image_url = #{leftImageUrl,jdbcType=VARCHAR},
<if test="detailBgImg != null" >
detail_bg_img = #{detailBgImg,jdbcType=VARCHAR},
</if>
<if test="bgImageUrl != null" >
bg_image_url = #{bgImageUrl,jdbcType=VARCHAR},
<if test="listTitle != null" >
list_title = #{listTitle,jdbcType=VARCHAR},
</if>
<if test="listNote != null" >
list_note = #{listNote,jdbcType=VARCHAR},
</if>
<if test="listBgImg != null" >
list_bg_img = #{listBgImg,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=INTEGER},
... ... @@ -166,6 +196,9 @@
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="orderBy != null" >
order_by = #{orderBy,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
... ... @@ -174,18 +207,20 @@
set product_skn = #{productSkn,jdbcType=INTEGER},
begin_time = #{beginTime,jdbcType=INTEGER},
end_time = #{endTime,jdbcType=INTEGER},
content_one = #{contentOne,jdbcType=VARCHAR},
content_two = #{contentTwo,jdbcType=VARCHAR},
content_three = #{contentThree,jdbcType=VARCHAR},
order_by = #{orderBy,jdbcType=INTEGER},
left_image_url = #{leftImageUrl,jdbcType=VARCHAR},
bg_image_url = #{bgImageUrl,jdbcType=VARCHAR},
share_content = #{shareContent,jdbcType=VARCHAR},
detail_title = #{detailTitle,jdbcType=VARCHAR},
detail_note = #{detailNote,jdbcType=VARCHAR},
detail_left_img = #{detailLeftImg,jdbcType=VARCHAR},
detail_bg_img = #{detailBgImg,jdbcType=VARCHAR},
list_title = #{listTitle,jdbcType=VARCHAR},
list_note = #{listNote,jdbcType=VARCHAR},
list_bg_img = #{listBgImg,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT}
status = #{status,jdbcType=TINYINT},
order_by = #{orderBy,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectCount" resultType="java.lang.Integer" timeout="20000">
SELECT count(*) FROM product_cover_activity
</select>
... ...
... ... @@ -19,22 +19,28 @@
"endTime": {
"type": "integer"
},
"contentOne": {
"shareContent": {
"type": "keyword"
},
"contentTwo": {
"detailTitle": {
"type": "keyword"
},
"contentThree": {
"detailNote": {
"type": "keyword"
},
"orderBy": {
"type": "integer"
"detailLeftImg": {
"type": "keyword"
},
"detailBgImg": {
"type": "keyword"
},
"leftImageUrl": {
"listTitle": {
"type": "keyword"
},
"bgImageUrl": {
"listNote": {
"type": "keyword"
},
"listBgImg": {
"type": "keyword"
},
"createTime": {
... ... @@ -45,6 +51,9 @@
},
"status": {
"type": "integer"
},
"orderBy": {
"type": "integer"
}
}
}
... ...