瀏覽代碼

设备状态BUG

lin 3 年之前
父節點
當前提交
3dfa4ac0e2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/DeviceMapper.xml

+ 2 - 2
src/main/resources/mapper/DeviceMapper.xml

@@ -521,7 +521,7 @@
     <if test="deviceNo != null and deviceNo != ''"> AND (sd.device_no LIKE concat('%',#{deviceNo},'%') or sd.meter_no LIKE concat('%',#{deviceNo},'%') or sd.file_no LIKE concat('%',#{deviceNo},'%'))</if>
     <if test="clientName != null and clientName != ''"> AND sgm.customer_name LIKE concat('%',#{clientName},'%')</if>
     <if test="locDesc != null and locDesc != ''"> AND sd.loc_desc LIKE concat('%',#{locDesc},'%')</if>
-    <if test="status != null and status != ''"> and sd.device_status = #{status}</if>
+    <if test="status != null"> and sd.device_status = #{status}</if>
     <if test="valveStatus != null"> and sd.valve_status = #{valveStatus}</if>
     <if test="communityIds != null and communityIds.size() != 0">
       and sd.community_id in <foreach collection="communityIds" item="item" open="(" separator="," close=")">#{item}</foreach>
@@ -564,7 +564,7 @@
     <if test="deviceNo != null and deviceNo != ''"> AND (sd.device_no LIKE concat('%',#{deviceNo},'%') or sd.meter_no LIKE concat('%',#{deviceNo},'%') or sd.file_no LIKE concat('%',#{deviceNo},'%'))</if>
     <if test="clientName != null and clientName != ''"> AND sgm.customer_name LIKE concat('%',#{clientName},'%')</if>
     <if test="locDesc != null and locDesc != ''"> AND sd.loc_desc LIKE concat('%',#{locDesc},'%')</if>
-    <if test="status != null and status != ''"> and sd.device_status = #{status}</if>
+    <if test="status != null"> and sd.device_status = #{status}</if>
     <if test="valveStatus != null"> and sd.valve_status = #{valveStatus}</if>
     <if test="communityIds != null and communityIds.size() != 0">
       and sd.community_id in <foreach collection="communityIds" item="item" open="(" separator="," close=")">#{item}</foreach>