Bläddra i källkod

修改资料不必填可以为空

plf 3 år sedan
förälder
incheckning
ba00046c2a
1 ändrade filer med 3 tillägg och 9 borttagningar
  1. 3 9
      src/main/resources/mapper/ClubMapper.xml

+ 3 - 9
src/main/resources/mapper/ClubMapper.xml

@@ -24,9 +24,7 @@
         <if test="contractEmail != null and contractEmail != ''">
             contractEmail1 = #{contractEmail},
         </if>
-        <if test="contractPhone != null and contractPhone != ''">
-            contractPhone = #{contractPhone},
-        </if>
+        contractPhone = #{contractPhone},
         <if test="linkMan != null and linkMan != ''">
             linkMan = #{linkMan},
         </if>
@@ -51,12 +49,8 @@
         <if test="mainProduct != null and mainProduct != ''">
             mainpro = #{mainProduct},
         </if>
-        <if test="fax != null and fax != ''">
-            fax = #{fax},
-        </if>
-        <if test="profile != null and profile != ''">
-            info = #{profile},
-        </if>
+        fax = #{fax},
+        info = #{profile},
         lastModify = NOW()
         where clubID = #{clubId}
     </update>