Browse Source

网格修改

hym 4 years ago
parent
commit
66dfb69b47
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/main/resources/mapper/GridManagementMapper.xml

+ 6 - 6
src/main/resources/mapper/GridManagementMapper.xml

@@ -131,22 +131,22 @@
             <if test="deviceId != null">
                 device_id = #{deviceId},
             </if>
-            <if test="customerNo != null and customerNo != ''">
+            <if test="customerNo != null ">
                 customer_no = #{customerNo},
             </if>
-            <if test="customerPhone != null and customerPhone != ''">
+            <if test="customerPhone != null ">
                 customer_phone = #{customerPhone},
             </if>
-            <if test="customerName != null and customerName != ''">
+            <if test="customerName != null ">
                 customer_name = #{customerName},
             </if>
-            <if test="label != null and label != ''">
+            <if test="label != null ">
                 label = #{label},
             </if>
-            <if test="emergencyContact != null and emergencyContact != ''">
+            <if test="emergencyContact != null ">
                 emergency_contact = #{emergencyContact},
             </if>
-            <if test="emergencyContactPhoneNumber != null and emergencyContactPhoneNumber != ''">
+            <if test="emergencyContactPhoneNumber != null ">
                 emergency_contact_phone_number = #{emergencyContactPhoneNumber},
             </if>
             <if test="userId != null">