...
|
...
|
@@ -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>
|
...
|
...
|
|