浏览代码

网格修改

hym 4 年之前
父节点
当前提交
66dfb69b47
共有 1 个文件被更改,包括 6 次插入6 次删除
  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">