浏览代码

fix 数据迁移 bug

lvxianyun 2 年之前
父节点
当前提交
e823902293

+ 1 - 1
adm-business/adm-middleware/src/main/java/com/persagy/proxy/migration/service/Impl/ObjectRelationMigration.java

@@ -146,7 +146,7 @@ public class ObjectRelationMigration extends MigrationAbstractServiceImpl<Object
             // 分页处理sql
             if (result.getCount() > MigrationConstant.BATCH_SQL_DATA_COUNT) {
                 long pages = result.getCount() / queryCriteria.getSize() + 1;
-                for(long i = 2;i < pages; i++){
+                for(long i = 2;i <= pages; i++){
                     queryCriteria.setPage(i);
                     admData = getAdmData(context,queryCriteria);
                     appendValuesBefore(service,admData,futureList);