Authored by wangnan9279

专营店跳转

... ... @@ -17,13 +17,14 @@
<result column="country_id" property="countryId" jdbcType="INTEGER" />
<result column="brand_style" jdbcType="VARCHAR" property="brandStyle" />
<result column="shelves_brand_time" property="shelvesBrandTime" jdbcType="INTEGER" />
<result column="shop_id" property="shopId" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List">
id, brand_name, brand_domain, brand_alif, brand_ico,
is_hot,
brand_name_cn, brand_name_en,
brand_keyword, hot_keyword,status,country_id,brand_style,shelves_brand_time
brand_keyword, hot_keyword,status,country_id,brand_style,shelves_brand_time,shop_id
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
... ... @@ -47,7 +48,7 @@
brand_alif,
brand_ico, is_hot,
brand_name_cn, brand_name_en, brand_keyword,
hot_keyword,status,country_id,brand_style,shelves_brand_time)
hot_keyword,status,country_id,brand_style,shelves_brand_time,shop_id)
values (
#{id,jdbcType=INTEGER},
#{brandName,jdbcType=VARCHAR},
... ... @@ -62,7 +63,8 @@
#{status,jdbcType=INTEGER},
#{countryId,jdbcType=INTEGER},
#{brandStyle,jdbcType=VARCHAR},
#{shelvesBrandTime,jdbcType=INTEGER}
#{shelvesBrandTime,jdbcType=INTEGER},
#{shopId,jdbcType=INTEGER}
)
</insert>
... ... @@ -109,6 +111,9 @@
<if test="shelvesBrandTime != null">
shelves_brand_time = #{shelvesBrandTime,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
... ...
... ... @@ -60,6 +60,9 @@
},
"ufoBrandId": {
"type": "integer"
},
"shopId": {
"type": "integer"
}
}
}
... ...
package com.yoho.search.consumer.service.bo;
import com.yoho.search.dal.model.Brand;
import lombok.Data;
/**
* Created by wangnan on 2017/3/27.
*/
@Data
public class BrandBO extends Brand {
private static final long serialVersionUID = 968159334418118893L;
... ... @@ -15,27 +17,4 @@ public class BrandBO extends Brand {
private Integer ufoBrandId;
public Integer getTblBrandId() {
return tblBrandId;
}
public void setTblBrandId(Integer tblBrandId) {
this.tblBrandId = tblBrandId;
}
public Integer getUfoBrandId() {
return ufoBrandId;
}
public void setUfoBrandId(Integer ufoBrandId) {
this.ufoBrandId = ufoBrandId;
}
public String getBrandNameForSort() {
return brandNameForSort;
}
public void setBrandNameForSort(String brandNameForSort) {
this.brandNameForSort = brandNameForSort;
}
}
... ...