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>