...
|
...
|
@@ -14,17 +14,18 @@ |
|
|
<result property="linkType" column="link_type"/>
|
|
|
<result property="linkDetail" column="link_detail"/>
|
|
|
<result property="imageUrl" column="image_url"/>
|
|
|
<result property="showInXianyu" column="show_in_xianyu"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id, category_name, status, level, parent_id, order_by,create_time,update_time,link_type,link_detail,image_url
|
|
|
id, category_name, status, level, parent_id, order_by,create_time,update_time,link_type,link_detail,image_url,show_in_xianyu
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yoho.ufo.model.salecategory.SaleCategory">
|
|
|
insert into sale_category(category_name, status, level, parent_id, order_by,create_time,update_time
|
|
|
, link_type,link_detail,image_url)
|
|
|
, link_type,link_detail,image_url,show_in_xianyu)
|
|
|
values (#{categoryName}, #{status}, #{level}, #{parentId}, #{orderBy}, #{createTime}, #{updateTime}
|
|
|
, #{linkType}, #{linkDetail}, #{imageUrl})
|
|
|
, #{linkType}, #{linkDetail}, #{imageUrl}, #{showInXianyu})
|
|
|
</insert>
|
|
|
|
|
|
|
...
|
...
|
@@ -56,6 +57,9 @@ |
|
|
<if test="saleCategory.imageUrl != null">
|
|
|
image_url = #{saleCategory.imageUrl},
|
|
|
</if>
|
|
|
<if test="saleCategory.showInXianyu != null">
|
|
|
show_in_xianyu = #{saleCategory.showInXianyu},
|
|
|
</if>
|
|
|
update_time = #{saleCategory.updateTime}
|
|
|
</set>
|
|
|
where id = #{saleCategory.id}
|
...
|
...
|
|