Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
14c21be7
Commit
14c21be7
authored
May 05, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消EBS抽取循环
parent
f7da326b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+0
-16
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
14c21be7
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment