Browse Source

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

lvxianyun 3 years ago
parent
commit
a412136b90

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

@@ -134,8 +134,11 @@ public class ObjectRelationMigration extends MigrationAbstractServiceImpl<Object
             QueryCriteria queryCriteria = getQueryCriteria(miGrationRelCode.getCode());
             queryCriteria.setSize(MigrationConstant.BATCH_SQL_DATA_COUNT);
             CommonResult<List<ObjectRelation>> result = getAdmDataPage(context,queryCriteria);
+            if(result == null){
+                continue;
+            }
             List<ObjectRelation> admData = result.getData();
-            if(result == null|| CollUtil.isEmpty(admData)){
+            if(CollUtil.isEmpty(admData)){
                 continue;
             }
             if (result.getCount() > MigrationConstant.BATCH_SQL_DATA_COUNT) {