...
|
...
|
@@ -58,6 +58,134 @@ |
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufoProduct" >
|
|
|
insert into ufo_product
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="productName != null" >
|
|
|
product_name,
|
|
|
</if>
|
|
|
<if test="productCode != null" >
|
|
|
product_code,
|
|
|
</if>
|
|
|
<if test="maxSortId != null" >
|
|
|
max_sort_id,
|
|
|
</if>
|
|
|
<if test="midSortId != null" >
|
|
|
mid_sort_id,
|
|
|
</if>
|
|
|
<if test="brandId != null" >
|
|
|
brand_id,
|
|
|
</if>
|
|
|
<if test="seriesId != null" >
|
|
|
series_id,
|
|
|
</if>
|
|
|
<if test="gender != null" >
|
|
|
gender,
|
|
|
</if>
|
|
|
<if test="saleTime != null" >
|
|
|
sale_time,
|
|
|
</if>
|
|
|
<if test="minPrice != null" >
|
|
|
min_price,
|
|
|
</if>
|
|
|
<if test="maxPrice != null" >
|
|
|
max_price,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
update_time,
|
|
|
</if>
|
|
|
<if test="shelveTime != null" >
|
|
|
shelve_time,
|
|
|
</if>
|
|
|
<if test="editTime != null" >
|
|
|
edit_time,
|
|
|
</if>
|
|
|
<if test="shelveStatus != null" >
|
|
|
shelve_status,
|
|
|
</if>
|
|
|
<if test="storage != null" >
|
|
|
storage,
|
|
|
</if>
|
|
|
<if test="keyWords != null" >
|
|
|
key_words,
|
|
|
</if>
|
|
|
<if test="delStatus != null" >
|
|
|
del_status,
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
order_by,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="productName != null" >
|
|
|
#{productName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="productCode != null" >
|
|
|
#{productCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="maxSortId != null" >
|
|
|
#{maxSortId,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
<if test="midSortId != null" >
|
|
|
#{midSortId,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
<if test="brandId != null" >
|
|
|
#{brandId,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
<if test="seriesId != null" >
|
|
|
#{seriesId,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
<if test="gender != null" >
|
|
|
#{gender,jdbcType=CHAR},
|
|
|
</if>
|
|
|
<if test="saleTime != null" >
|
|
|
#{saleTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="minPrice != null" >
|
|
|
#{minPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="maxPrice != null" >
|
|
|
#{maxPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
#{updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="shelveTime != null" >
|
|
|
#{shelveTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="editTime != null" >
|
|
|
#{editTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="shelveStatus != null" >
|
|
|
#{shelveStatus,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="storage != null" >
|
|
|
#{storage,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="keyWords != null" >
|
|
|
#{keyWords,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="delStatus != null" >
|
|
|
#{delStatus,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
<if test="orderBy != null" >
|
|
|
#{orderBy,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProduct">
|
|
|
update ufo_product
|
|
|
<set>
|
...
|
...
|
|