Browse Source

只筛选接入设备

develop
wangsixiang 9 months ago
parent
commit
85f9ac4180
  1. 2
      zc-business/src/main/resources/mapper/business/DcDeviceMapper.xml

2
zc-business/src/main/resources/mapper/business/DcDeviceMapper.xml

@ -158,7 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="deviceState != null and deviceState != ''">and device_state = #{deviceState}</if>
<if test="deviceName != null and deviceName != ''">and device_name like concat('%', #{deviceName}, '%')</if>
<if test="deviceType != null and deviceType != ''">and device_type = #{deviceType}</if>
<if test="deviceType != null and deviceType != ''">and device_type = #{deviceType} and iot_device_id is not null</if>
<if test="deviceType == null || deviceType == ''">
and (device_type=3||device_type=13||device_type=15||device_type=16) and iot_device_id is not null
</if>

Loading…
Cancel
Save