记得上下班打卡 | git大法好,push需谨慎

Commit 2771b1c3 authored by anjiabin's avatar anjiabin

去掉查询线程休眠时间

parent 568c6d1d
...@@ -196,13 +196,6 @@ public class ZxinTradeCommonBiz { ...@@ -196,13 +196,6 @@ public class ZxinTradeCommonBiz {
String nftIdBegin = null; String nftIdBegin = null;
long timeStart = System.currentTimeMillis(); long timeStart = System.currentTimeMillis();
while (StringUtil.isEmpty(nftIdBegin)) { while (StringUtil.isEmpty(nftIdBegin)) {
//休眠1秒钟,等待执行结果
try {
Thread.sleep(2000l);
} catch (InterruptedException e) {
e.printStackTrace();
}
count++; count++;
ZxlnftResponseDto<Nft035PublishResultRespDto> nft035RespDtoTemp = zxlnftSdkUtil.nft035PublishResult(nft035ReqDto); ZxlnftResponseDto<Nft035PublishResultRespDto> nft035RespDtoTemp = zxlnftSdkUtil.nft035PublishResult(nft035ReqDto);
log.info("=======执行第{}次查询,taskId:{}", count, nft035ReqDto.getTaskId()); log.info("=======执行第{}次查询,taskId:{}", count, nft035ReqDto.getTaskId());
...@@ -377,11 +370,6 @@ public class ZxinTradeCommonBiz { ...@@ -377,11 +370,6 @@ public class ZxinTradeCommonBiz {
int count = 0; int count = 0;
while(nftBuyPayTaskId == null){ while(nftBuyPayTaskId == null){
try {
Thread.sleep(1000l);
} catch (InterruptedException e) {
e.printStackTrace();
}
count++; count++;
log.info("=======执行第{}次查询,taskId:{}",count,nft044ReqDto.getTaskId()); log.info("=======执行第{}次查询,taskId:{}",count,nft044ReqDto.getTaskId());
ZxlnftResponseDto<Nft044BuyResultRespDto> nft044RespDto = zxlnftSdkUtil.nft044BuyResult(nft044ReqDto); ZxlnftResponseDto<Nft044BuyResultRespDto> nft044RespDto = zxlnftSdkUtil.nft044BuyResult(nft044ReqDto);
......
...@@ -285,13 +285,6 @@ public class ZxinArtworkBiz { ...@@ -285,13 +285,6 @@ public class ZxinArtworkBiz {
int count = 0; int count = 0;
while(StringUtil.isEmpty(seriesId)){ while(StringUtil.isEmpty(seriesId)){
//休眠1秒钟,等待执行结果
try {
Thread.sleep(1000l);
} catch (InterruptedException e) {
e.printStackTrace();
}
count++; count++;
log.info("=======执行第{}次查询,taskId:{}",count,nft031ReqDto.getTaskId()); log.info("=======执行第{}次查询,taskId:{}",count,nft031ReqDto.getTaskId());
ZxlnftResponseDto<Nft031SeriesClaimResultRespDto> nft031RespDtoTemp = zxlnftSdkUtil.nft031SeriesClaimResult(nft031ReqDto); ZxlnftResponseDto<Nft031SeriesClaimResultRespDto> nft031RespDtoTemp = zxlnftSdkUtil.nft031SeriesClaimResult(nft031ReqDto);
......
...@@ -294,13 +294,6 @@ public class ZxinPublishBiz { ...@@ -294,13 +294,6 @@ public class ZxinPublishBiz {
String nftIdBegin = null; String nftIdBegin = null;
long timeStart = System.currentTimeMillis(); long timeStart = System.currentTimeMillis();
while (StringUtil.isEmpty(nftIdBegin)) { while (StringUtil.isEmpty(nftIdBegin)) {
//休眠1秒钟,等待执行结果
try {
Thread.sleep(1000l);
} catch (InterruptedException e) {
e.printStackTrace();
}
count++; count++;
ZxlnftResponseDto<Nft035PublishResultRespDto> nft035RespDtoTemp = zxlnftSdkUtil.nft035PublishResult(nft035ReqDto); ZxlnftResponseDto<Nft035PublishResultRespDto> nft035RespDtoTemp = zxlnftSdkUtil.nft035PublishResult(nft035ReqDto);
log.info("=======执行第{}次查询,taskId:{}", count, nft035ReqDto.getTaskId()); log.info("=======执行第{}次查询,taskId:{}", count, nft035ReqDto.getTaskId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment