...
|
...
|
@@ -9,11 +9,12 @@ |
|
|
<result column="brand_logo" property="brandLogo" jdbcType="VARCHAR"/>
|
|
|
<result column="brand_search" property="brandSearch" jdbcType="VARCHAR"/>
|
|
|
<result column="status" property="status" jdbcType="TINYINT"/>
|
|
|
<result column="order_by" property="orderBy" jdbcType="INTEGER" />
|
|
|
<result column="search_show_image" property="searchShowImage" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id, brand_name, brand_name_en, brand_logo, brand_search, status, search_show_image
|
|
|
id, brand_name, brand_name_en, brand_logo, brand_search, status, order_by, order_by,search_show_image
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Short">
|
...
|
...
|
@@ -49,6 +50,9 @@ |
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
order_by,
|
|
|
</if>
|
|
|
<if test="searchShowImage != null" >
|
|
|
search_show_image,
|
|
|
</if>
|
...
|
...
|
@@ -72,6 +76,9 @@ |
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
#{orderBy,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="searchShowImage != null" >
|
|
|
#{searchShowImage,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -96,6 +103,9 @@ |
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
order_by = #{orderBy,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="searchShowImage != null" >
|
|
|
search_show_image = #{searchShowImage,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -110,6 +120,7 @@ |
|
|
brand_logo = #{brandLogo,jdbcType=VARCHAR},
|
|
|
brand_search = #{brandSearch,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
order_by = #{orderBy,jdbcType=INTEGER},
|
|
|
search_show_image = #{searchShowImage,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=SMALLINT}
|
|
|
</update>
|
...
|
...
|
|