|
@@ -123,6 +123,9 @@
|
|
|
<if test="paramCount != null">
|
|
|
param_count,
|
|
|
</if>
|
|
|
+ <if test="sort != null">
|
|
|
+ sort,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="name != null">
|
|
@@ -134,6 +137,9 @@
|
|
|
<if test="paramCount != null">
|
|
|
#{paramCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="sort != null">
|
|
|
+ #{sort,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.yonge.cooleshow.mbg.model.PmsProductAttributeCategoryExample" resultType="java.lang.Long">
|
|
@@ -157,6 +163,9 @@
|
|
|
<if test="record.paramCount != null">
|
|
|
param_count = #{record.paramCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.sort != null">
|
|
|
+ sort = #{record.sort,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -167,6 +176,7 @@
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
attribute_count = #{record.attributeCount,jdbcType=INTEGER},
|
|
|
+ sort = #{record.sort,jdbcType=INTEGER},
|
|
|
param_count = #{record.paramCount,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -184,6 +194,9 @@
|
|
|
<if test="paramCount != null">
|
|
|
param_count = #{paramCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="sort != null">
|
|
|
+ sort = #{sort,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -191,6 +204,7 @@
|
|
|
update pms_product_attribute_category
|
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
attribute_count = #{attributeCount,jdbcType=INTEGER},
|
|
|
+ sort = #{sort,jdbcType=INTEGER},
|
|
|
param_count = #{paramCount,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|