diff --git a/plugins/data-migration/src/main/java/org/opengauss/admin/plugin/service/impl/MigrationTaskAlertServiceImpl.java b/plugins/data-migration/src/main/java/org/opengauss/admin/plugin/service/impl/MigrationTaskAlertServiceImpl.java index f5e5081f5c6ea1356e1484f2855b2fa679e83f1e..f7e276f9260512172498cde2ec10de6ffe6cc61a 100644 --- a/plugins/data-migration/src/main/java/org/opengauss/admin/plugin/service/impl/MigrationTaskAlertServiceImpl.java +++ b/plugins/data-migration/src/main/java/org/opengauss/admin/plugin/service/impl/MigrationTaskAlertServiceImpl.java @@ -134,6 +134,7 @@ public class MigrationTaskAlertServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(MigrationTaskAlert::getTaskId, taskId); queryWrapper.eq(MigrationTaskAlert::getMigrationPhase, migrationPhase); + queryWrapper.orderByAsc(MigrationTaskAlert::getId); IPage alertIPage = alertMapper.selectPage(page, queryWrapper); List taskAlerts = alertIPage.getRecords();