PLF hace 5 años
padre
commit
16315034bf
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/main/resources/mapper/UserMapper.xml

+ 4 - 4
src/main/resources/mapper/UserMapper.xml

@@ -48,16 +48,16 @@
         UPDATE
           cm_mall_organize
         SET
-        <if test="contactNumber != null">
+        <if test="contactNumber != null and contactNumber != ''">
             contactNumber = #{contactNumber},
         </if>
-        <if test="introduction != null">
+        <if test="introduction != null and introduction != ''">
             introduction = #{introduction}
         </if>
-        <if test="afterSale != null">
+        <if test="afterSale != null and afterSale != ''">
             afterSale = #{afterSale}
         </if>
-        <if test="shoppingNotes != null">
+        <if test="shoppingNotes != null and shoppingNotes != ''">
             shoppingNotes = #{shoppingNotes}
         </if>
         WHERE