Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
6e78db5d
Commit
6e78db5d
authored
Jan 02, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
0a7decf4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletions
+17
-1
fi-taxctl/app/base/api/api.base.js
+2
-1
fi-taxctl/app/base/api/impl/rpt/rptApi.js
+5
-0
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+10
-0
No files found.
fi-taxctl/app/base/api/api.base.js
View file @
6e78db5d
...
...
@@ -13,7 +13,8 @@ class APIBase extends DocBase {
var
fullname
=
gname
+
"."
+
methodname
;
var
lst
=
[
"rpt.saveRptHistory"
,
"rpt.saveRpt"
"rpt.saveRpt"
,
"rpt.queryStatus"
];
var
x
=
lst
.
indexOf
(
fullname
);
return
x
>=
0
;
...
...
fi-taxctl/app/base/api/impl/rpt/rptApi.js
View file @
6e78db5d
...
...
@@ -70,6 +70,11 @@ class RptAPI extends APIBase{
var
x
=
await
this
.
rptService
.
saveRptHistory
(
pobj
);
return
system
.
getResult
(
x
);
}
async
queryStatus
(
pobj
,
query
){
console
.
log
(
JSON
.
stringify
(
pobj
));
var
x
=
await
this
.
rptService
.
queryStatus
(
pobj
);
return
system
.
getResult
(
x
);
}
exam
(){
return
"xxx"
;
}
...
...
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
6e78db5d
...
...
@@ -41,10 +41,20 @@ class RptTypeService extends ServiceBase{
content
:
batchid
+
""
}));
self
.
redisClient
.
delete
(
"batch"
+
batchid
);
//改变批的状态为解析完毕
batch
.
batchstatuscode
=
"calc"
;
batch
.
save
();
}
return
{};
});
}
async
queryStatus
(
bs
){
return
this
.
db
.
models
.
uploadbatch
.
findAll
({
where
:{
id
:{
[
this
.
db
.
Op
.
in
]:
bs
}
}});
}
async
saveRpt
(
upinfo
){
return
this
.
db
.
transaction
(
async
t
=>
{
//构建批量对象
...
...
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