Forráskód Böngészése

fix 数据迁移 导出sql脚本,关系sql

lvxianyun 2 éve
szülő
commit
4f14a4dcc6

+ 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);