Browse Source

bug fixes

PLF 5 years ago
parent
commit
16315034bf
1 changed files with 4 additions and 4 deletions
  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