第三方产品信息过滤问题

dev_price
anthonywj 1 year ago
parent 805c82e972
commit 6b22bfb862

@ -192,7 +192,7 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
@Override @Override
public BaseResponse downloadThrPi(ThrSystemDetailEntity thrSystemDetailEntity) { public BaseResponse downloadThrPi(ThrSystemDetailEntity thrSystemDetailEntity) {
int page = 1; int page = 1;
int limit = 200; int limit = 100;
FilterThrProductsRequest request = new FilterThrProductsRequest(); FilterThrProductsRequest request = new FilterThrProductsRequest();
request.setThirdSysFk(thrSystemDetailEntity.getThirdSysFk()); request.setThirdSysFk(thrSystemDetailEntity.getThirdSysFk());
request.setLimit(limit); 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++; page++;
} else { } else {
break; break;
@ -290,7 +290,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++; page++;
} else { } else {
if (count == 0) { if (count == 0) {

Loading…
Cancel
Save