第三方产品信息过滤问题

20231126-yw
anthonywj 1 year ago
parent b5108288a5
commit 04534e3f43

@ -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;
@ -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++; page++;
} else { } else {
if (count == 0) { if (count == 0) {

@ -4,7 +4,7 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver driver-class-name: com.p6spy.engine.spy.P6SpyDriver
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_pt?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_ct?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: 123456
hikari: hikari:

Loading…
Cancel
Save