|
|
|
@ -192,7 +192,7 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse downloadThrPi(ThrSystemDetailEntity thrSystemDetailEntity) {
|
|
|
|
|
int page = 1;
|
|
|
|
|
int limit = 200;
|
|
|
|
|
int limit = 100;
|
|
|
|
|
FilterThrProductsRequest request = new FilterThrProductsRequest();
|
|
|
|
|
request.setThirdSysFk(thrSystemDetailEntity.getThirdSysFk());
|
|
|
|
|
request.setLimit(limit);
|
|
|
|
@ -238,7 +238,7 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (list.size() >= limit && !baseResponse.getData().getTotal().equals(-666)) {
|
|
|
|
|
if ((list.size() >= limit && !baseResponse.getData().getTotal().equals(-666)) || IntUtil.value(baseResponse.getData().getTotal()) == -555) {
|
|
|
|
|
page++;
|
|
|
|
|
} else {
|
|
|
|
|
break;
|
|
|
|
@ -289,7 +289,8 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (list.size() >= limit && !baseResponse.getData().getTotal().equals(-666)) {
|
|
|
|
|
//total = -666 表示出错,-555表示数据已经被过滤,可以进行下一页下载
|
|
|
|
|
if ((list.size() >= limit && !baseResponse.getData().getTotal().equals(-666)) || IntUtil.value(baseResponse.getData().getTotal()) == -555) {
|
|
|
|
|
page++;
|
|
|
|
|
} else {
|
|
|
|
|
if (count == 0) {
|
|
|
|
|