diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java index d623d79d..cca4d84f 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceMapper.java @@ -340,7 +340,7 @@ public interface DeviceMapper { " FROM wvp_device de" + " where 1 = 1 "+ " AND de.on_line=${status}"+ - " AND coalesce(custom_name, name) LIKE '%${query}%' " + + " AND (coalesce(custom_name, name) LIKE '%${query}%' OR device_id LIKE '%${query}%') " + " order by create_time desc "+ " ") List getDeviceList(@Param("query") String query, @Param("status") Boolean status);