...
|
...
|
@@ -14,15 +14,16 @@ |
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="editPid" column="edit_pid"/>
|
|
|
<result property="search_show_image" column="searchShowImage"/>
|
|
|
<result property="ex_raise" column="exRaise"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="queryColumns">
|
|
|
id, brand_name, brand_name_cn, brand_name_en, brand_logo, brand_search, status, create_time, search_show_image
|
|
|
id, brand_name, brand_name_cn, brand_name_en, brand_logo, brand_search, status, create_time, search_show_image,ex_raise
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insertBrand" parameterType="com.yoho.ufo.model.brand.Brand">
|
|
|
insert into brand(id, brand_name, brand_name_cn, brand_name_en, brand_logo, search_show_image, brand_search, status, create_time, edit_time, edit_pid)
|
|
|
values (#{id}, #{brandName},#{brandNameCn}, #{brandNameEn}, #{brandLogo}, #{searchShowImage}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid})
|
|
|
insert into brand(id, brand_name, brand_name_cn, brand_name_en, brand_logo, search_show_image, brand_search, status, create_time, edit_time, edit_pid,ex_raise)
|
|
|
values (#{id}, #{brandName},#{brandNameCn}, #{brandNameEn}, #{brandLogo}, #{searchShowImage}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid}, #{exRaise})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateBrandStatus" parameterType="com.yoho.ufo.model.brand.Brand">
|
...
|
...
|
@@ -56,6 +57,9 @@ |
|
|
<if test="brand.editPid != null">
|
|
|
edit_pid = #{brand.editPid},
|
|
|
</if>
|
|
|
<if test="brand.exRaise != null">
|
|
|
ex_raise = #{brand.exRaise},
|
|
|
</if>
|
|
|
brand_search = #{brand.brandSearch},
|
|
|
search_show_image = #{brand.searchShowImage}
|
|
|
</set>
|
...
|
...
|
|