2023-05-25 15:50:18 优化完善设备管理查询接口!

master
魔神煜修罗皇 2 years ago
parent 2b73f2af5a
commit ce34a9afc4
  1. 5
      psdc-business/src/main/resources/mapper/business/PsdcDeviceMapper.xml

@ -117,7 +117,7 @@
</where>
</select>
<!--分页查询指定行数据-->
<!--分页查询指定行数据 Where !(device_model = "温度传感器" And parent_id = 0) -->
<select id="queryAllByLimit" resultMap="PsdcDeviceMap3">
Select
pd.device_id, device_name, device_address, device_status, device_runstatus, parent_id, device_model, su.user_id, su.user_name, is_control,
@ -126,7 +126,7 @@
Left Join sys_user su On su.user_id = pd.user_id
Left Join psdc_electric_rtdata per On per.device_id = pd.device_id
Left Join psdc_thermometer_rtdata ptr On ptr.device_id = pd.device_id
Where !(device_model = "温度传感器" And parent_id = 0)
<where>
<if test="deviceId != null and deviceId != ''">
and pd.device_id = #{deviceId}
</if>
@ -175,6 +175,7 @@
<if test="updateTime != null and updateTime != ''">
and update_time = #{updateTime}
</if>
</where>
Order by pd.device_id
</select>

Loading…
Cancel
Save