Bladeren bron

商品编辑修改

linhui.li 1 week geleden
bovenliggende
commit
837d11c447
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      py-goods/src/main/resources/mapper/SpuMapper.xml

+ 1 - 1
py-goods/src/main/resources/mapper/SpuMapper.xml

@@ -41,7 +41,7 @@
         update spu
         <trim prefix="set" suffixOverrides=",">
             <if test="category!=null and category!=''">category=#{category},</if>
-            <if test="subCategory!=null and subCategory!=''">sub_category=#{subCategory}</if>
+            <if test="subCategory!=null and subCategory!=''">sub_category=#{subCategory},</if>
             <if test="spuName!=null and spuName!=''">spu_name=#{spuName},</if>
             <if test="num!=null">num=#{num},</if>
             <if test="mainImage!=null and mainImage!=''">main_image=#{mainImage},</if>