2023-06-19 09:26:45 优化完善温度传感器的查询接口!

master
魔神煜修罗皇 2 years ago
parent 2ffb90c6c0
commit 1f3be1364a
  1. 3
      psdc-business/src/main/resources/mapper/business/PsdcThermometerHtdataMapper.xml

@ -40,8 +40,9 @@
From psdc_thermometer_htdata pth
LEFT JOIN psdc_device pd On pd.device_id = pth.device_id
<where>
pd.device_model = "温度传感器"
<if test="installAddress != null and installAddress != ''">
pd.device_address LIKE concat('%', #{installAddress}, '%')
And pd.device_address LIKE concat('%', #{installAddress}, '%')
</if>
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
And date_format(pth.update_time,'%Y-%m-%d %H:%i:%S') &gt;= date_format(#{beginTime},'%Y-%m-%d %H:%i:%S')

Loading…
Cancel
Save