|
|
|
@ -224,6 +224,7 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
filterThrProductsRequest.setThirdSysFk(filterThrProductsRequest.getThirdSys());
|
|
|
|
|
filterThrProductsRequest.setLimit(limit);
|
|
|
|
|
log.error("开始下载-------");
|
|
|
|
|
int count = 0;
|
|
|
|
|
while (true) {
|
|
|
|
|
log.error("下载分页-------" + page);
|
|
|
|
|
filterThrProductsRequest.setPage(page);
|
|
|
|
@ -258,9 +259,17 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
if (list.size() >= limit && !baseResponse.getData().getTotal().equals(-666)) {
|
|
|
|
|
page++;
|
|
|
|
|
} else {
|
|
|
|
|
if (count == 0) {
|
|
|
|
|
page++;
|
|
|
|
|
count++;
|
|
|
|
|
} else
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (count == 0) {
|
|
|
|
|
page++;
|
|
|
|
|
count++;
|
|
|
|
|
} else
|
|
|
|
|
return ResultVOUtils.error(500, "下载第三方系统产品信息异常");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|