|
@@ -28,7 +28,9 @@ public interface SafeCameraMapper extends BaseMapperX<SafeCameraDO> {
|
|
|
}
|
|
|
|
|
|
default List<SafeCameraDO> selectByServerId(Long serverId) {
|
|
|
- return selectList("server_id",serverId);
|
|
|
+ return selectList(new LambdaQueryWrapperX<SafeCameraDO>()
|
|
|
+ .eq(SafeCameraDO::getServerId, serverId)
|
|
|
+ .orderByDesc(SafeCameraDO::getSort));
|
|
|
}
|
|
|
|
|
|
}
|