修复通道重命名后无法被检索到

pull/1270/head
648540858 2024-01-19 16:07:30 +08:00
parent 47e5d2b00b
commit 654599b659
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ public interface DeviceChannelMapper {
"wvp_device_channel dc " + "wvp_device_channel dc " +
"WHERE " + "WHERE " +
"dc.device_id = #{deviceId} " + "dc.device_id = #{deviceId} " +
" <if test='query != null'> AND (dc.channel_id LIKE concat('%',#{query},'%') OR dc.name LIKE concat('%',#{query},'%') OR dc.name LIKE concat('%',#{query},'%'))</if> " + " <if test='query != null'> AND (" +
"dc.channel_id LIKE concat('%',#{query},'%') " +
"OR dc.name LIKE concat('%',#{query},'%') " +
"OR dc.custom_name LIKE concat('%',#{query},'%')" +
")</if> " +
" <if test='parentChannelId != null'> AND (dc.parent_id=#{parentChannelId} OR dc.civil_code = #{parentChannelId}) </if> " + " <if test='parentChannelId != null'> AND (dc.parent_id=#{parentChannelId} OR dc.civil_code = #{parentChannelId}) </if> " +
" <if test='online == true' > AND dc.status= true</if>" + " <if test='online == true' > AND dc.status= true</if>" +
" <if test='online == false' > AND dc.status= false</if>" + " <if test='online == false' > AND dc.status= false</if>" +