|
@@ -141,16 +141,16 @@ public class ObjectRelationMigration extends MigrationAbstractServiceImpl<Object
|
|
|
if(CollUtil.isEmpty(admData)){
|
|
|
continue;
|
|
|
}
|
|
|
+ // 拼接sql
|
|
|
+ appendValuesBefore(service,admData,futureList);
|
|
|
+ // 分页处理sql
|
|
|
if (result.getCount() > MigrationConstant.BATCH_SQL_DATA_COUNT) {
|
|
|
long pages = result.getCount() / queryCriteria.getSize() + 1;
|
|
|
for(long i = 2;i < pages; i++){
|
|
|
queryCriteria.setPage(i);
|
|
|
- result = getAdmDataPage(context,queryCriteria);
|
|
|
- admData = result.getData();
|
|
|
+ admData = getAdmData(context,queryCriteria);
|
|
|
appendValuesBefore(service,admData,futureList);
|
|
|
}
|
|
|
- }else{
|
|
|
- appendValuesBefore(service,admData,futureList);
|
|
|
}
|
|
|
}
|
|
|
service.shutdown();
|