dcs 2 ヶ月 前
コミット
0781a92ff7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      virgo.api/src/main/resources/mapper/ProductMapper.xml

+ 1 - 1
virgo.api/src/main/resources/mapper/ProductMapper.xml

@@ -99,7 +99,7 @@
             <if test="type!=null">type=#{type},</if>
             <if test="productLevelId!=0">productLevelId=#{productLevelId},</if>
             <if test="name!=null">name=#{name},</if>
-            <if test="price!=0">price=#{price},</if>
+            <if test="price!=null">price=#{price},</if>
             <if test="intro!=null">intro=#{intro},</if>
             <if test="updateTime==null">updateTime=now(),</if>
             <if test="state!=null">state=#{state},</if>