Commit 14c21be7 authored by zhkwei's avatar zhkwei

取消EBS抽取循环

parent f7da326b
...@@ -810,22 +810,6 @@ public class EbsApiServiceImpl implements EbsApiService { ...@@ -810,22 +810,6 @@ public class EbsApiServiceImpl implements EbsApiService {
@Override @Override
public void changeCallBackStatus(EbsCallBackDto ebsCallBackDto) { public void changeCallBackStatus(EbsCallBackDto ebsCallBackDto) {
//当调用EBS接口失败之后,由于EBS调用callback和EBS返回response时间上几乎没有差异,
// 但callback的执行代码依赖于response返回后的插入代码,那就存在程序会先执行response还是先执行callback的问题,
// 在此做出判断先查一下数据库并给出查询次数限制防止一直查询数据库 create by zhikai.z.wei 20190505 17:08 start
//循环条件
boolean loopTemp = true;
//循环次数
int loopTimes = 0;
while(loopTemp && loopTimes < 1000){
DataImportLog byPrimaryKey = dataImportLogMapper.selectByPrimaryKey(ebsCallBackDto.getTaskId());
if(byPrimaryKey != null){
loopTemp = false;
}
loopTimes++;
}
// 在此做出判断先查一下数据库并给出查询次数限制防止一直查询数据库 create by zhikai.z.wei 20190505 17:08 end
DataImportLog dataImportLog = new DataImportLog(); DataImportLog dataImportLog = new DataImportLog();
dataImportLog.setId(ebsCallBackDto.getTaskId()); dataImportLog.setId(ebsCallBackDto.getTaskId());
dataImportLog.setImportResult("S".equals(ebsCallBackDto.getTaskStatus())?true:false); dataImportLog.setImportResult("S".equals(ebsCallBackDto.getTaskStatus())?true:false);
......
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