数据20250916优化-点位名称模糊查询

This commit is contained in:
2025-09-18 18:04:59 +08:00
parent 8954329ccc
commit e93f9cc6b8
5 changed files with 15 additions and 8 deletions

View File

@ -327,10 +327,13 @@
from ems_point_match t
where 1=1
<if test="siteId != null and siteId != ''">
and site_id = #{siteId}
and t.site_id = #{siteId}
</if>
<if test="deviceCategory != null and deviceCategory != ''">
and device_category = #{deviceCategory}
and t.device_category = #{deviceCategory}
</if>
<if test="dataPointName != null and dataPointName != ''">
and t.data_point_name like CONCAT('%', #{dataPointName}, '%')
</if>
</select>
</mapper>