Commit f7da326b authored by zhkwei's avatar zhkwei

1、现金流量表排序;2、EBS抽取针对先走callback再走responsebug

parent f9d7fce0
......@@ -810,6 +810,22 @@ public class EbsApiServiceImpl implements EbsApiService {
@Override
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.setId(ebsCallBackDto.getTaskId());
dataImportLog.setImportResult("S".equals(ebsCallBackDto.getTaskStatus())?true:false);
......
......@@ -34,7 +34,7 @@
from cash_flow
where
<include refid="QueryCondition"/>
order by id desc
order by id asc
</select>
<select id="selectCountByCondition" parameterType="pwc.taxtech.atms.vat.dpo.CashFlowCondition" resultType="Integer">
select
......
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