mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-23 05:37:48 +08:00
Merge pull request #1815 from xiaoQQya/fix/pg
fix: 修复使用 postgres 数据库时设备列表和通道列表可能乱序的问题
This commit is contained in:
commit
6ccccb1bbd
@ -381,7 +381,7 @@ public interface DeviceMapper {
|
|||||||
" OR device_id LIKE concat('%',#{query},'%') escape '/' " +
|
" OR device_id LIKE concat('%',#{query},'%') escape '/' " +
|
||||||
" OR ip LIKE concat('%',#{query},'%') escape '/')" +
|
" OR ip LIKE concat('%',#{query},'%') escape '/')" +
|
||||||
"</if> " +
|
"</if> " +
|
||||||
" order by create_time desc "+
|
" order by create_time desc, device_id " +
|
||||||
" </script>")
|
" </script>")
|
||||||
List<Device> getDeviceList(@Param("dataType") Integer dataType, @Param("query") String query, @Param("status") Boolean status);
|
List<Device> getDeviceList(@Param("dataType") Integer dataType, @Param("query") String query, @Param("status") Boolean status);
|
||||||
|
|
||||||
|
|||||||
@ -101,6 +101,7 @@ public class DeviceChannelProvider {
|
|||||||
}
|
}
|
||||||
sqlBuild.append(" )");
|
sqlBuild.append(" )");
|
||||||
}
|
}
|
||||||
|
sqlBuild.append("ORDER BY device_id");
|
||||||
return sqlBuild.toString();
|
return sqlBuild.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user