dcs hace 2 meses
padre
commit
0781a92ff7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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="type!=null">type=#{type},</if>
             <if test="productLevelId!=0">productLevelId=#{productLevelId},</if>
             <if test="productLevelId!=0">productLevelId=#{productLevelId},</if>
             <if test="name!=null">name=#{name},</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="intro!=null">intro=#{intro},</if>
             <if test="updateTime==null">updateTime=now(),</if>
             <if test="updateTime==null">updateTime=now(),</if>
             <if test="state!=null">state=#{state},</if>
             <if test="state!=null">state=#{state},</if>