Explorar o código

fix:商品分类排序

liujunchi %!s(int64=2) %!d(string=hai) anos
pai
achega
3c4b6d399e

+ 14 - 0
cooleshow-mall/mall-mbg/src/main/resources/config/mybatis/PmsProductAttributeCategoryMapper.xml

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