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
f7da326b
Commit
f7da326b
authored
May 05, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、现金流量表排序;2、EBS抽取针对先走callback再走responsebug
parent
f9d7fce0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+16
-0
CashFlowExtendsMapper.xml
...wc/taxtech/atms/vat/dao/extends/CashFlowExtendsMapper.xml
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
f7da326b
...
@@ -810,6 +810,22 @@ public class EbsApiServiceImpl implements EbsApiService {
...
@@ -810,6 +810,22 @@ 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
);
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/CashFlowExtendsMapper.xml
View file @
f7da326b
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
from cash_flow
from cash_flow
where
where
<include
refid=
"QueryCondition"
/>
<include
refid=
"QueryCondition"
/>
order by id
de
sc
order by id
a
sc
</select>
</select>
<select
id=
"selectCountByCondition"
parameterType=
"pwc.taxtech.atms.vat.dpo.CashFlowCondition"
resultType=
"Integer"
>
<select
id=
"selectCountByCondition"
parameterType=
"pwc.taxtech.atms.vat.dpo.CashFlowCondition"
resultType=
"Integer"
>
select
select
...
...
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