mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-17 02:57:50 +08:00
设备支持根据编号搜索
This commit is contained in:
parent
a59854e244
commit
278df87c07
@ -340,7 +340,7 @@ public interface DeviceMapper {
|
||||
" FROM wvp_device de" +
|
||||
" where 1 = 1 "+
|
||||
" <if test='status != null'> AND de.on_line=${status}</if>"+
|
||||
" <if test='query != null'> AND coalesce(custom_name, name) LIKE '%${query}%'</if> " +
|
||||
" <if test='query != null'> AND (coalesce(custom_name, name) LIKE '%${query}%' OR device_id LIKE '%${query}%')</if> " +
|
||||
" order by create_time desc "+
|
||||
" </script>")
|
||||
List<Device> getDeviceList(@Param("query") String query, @Param("status") Boolean status);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user