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
5446414b
Commit
5446414b
authored
Feb 18, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
668ba7b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
fi-taxctl/app/base/api/api.base.js
+1
-0
fi-taxctl/app/base/api/impl/rpt/rptApi.js
+9
-0
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+27
-0
No files found.
fi-taxctl/app/base/api/api.base.js
View file @
5446414b
...
...
@@ -18,6 +18,7 @@ class APIBase extends DocBase {
"rpt.queryStatus2"
,
"rpt.queryReport"
,
"rpt.buildWordReport"
,
"rpt.resultJson"
,
"rpt.queryPosMap"
,
"rpt.updateTaskRptUrl"
];
...
...
fi-taxctl/app/base/api/impl/rpt/rptApi.js
View file @
5446414b
...
...
@@ -94,6 +94,15 @@ class RptAPI extends APIBase{
return
system
.
getResult
(
null
);
}
}
async
resultJson
(
pobj
,
query
){
if
(
pobj
){
var
x
=
await
this
.
rptService
.
resultJson
(
pobj
.
batchid
);
return
system
.
getResult
(
x
);
}
else
{
return
system
.
getResult
(
null
);
}
}
async
buildWordReport
(
pobj
,
query
){
if
(
pobj
){
var
x
=
await
this
.
rptService
.
buildWordReport
(
pobj
.
batchid
);
...
...
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
5446414b
...
...
@@ -185,6 +185,33 @@ class RptTypeService extends ServiceBase{
await
this
.
db
.
models
.
uploadbatch
.
update
({
"wordrpturl"
:
upinfo
.
rptUrl
},{
where
:
{
id
:
upinfo
.
batchid
}});
return
{};
}
//返回
async
resultJson
(
batchid
){
var
batch
=
await
this
.
db
.
models
.
uploadbatch
.
findById
(
batchid
);
var
rs
=
await
this
.
db
.
models
.
result
.
findAll
({
where
:{
"BatchNo"
:
batchid
},
attributes
:[
"indexName"
,
"status"
],
raw
:
true
});
var
tmp
=
{};
var
arrayfi
=
[];
rs
.
forEach
((
item
=>
{
if
(
item
.
biztype
==
"ri"
){
tmp
[
item
.
indexName
]
=
Number
(
item
.
status
);
}
else
{
var
tmp2
=
{};
tmp2
[
item
.
indexName
]
=
item
.
status
;
arrayfi
.
push
(
tmp2
);
}
}));
var
paramto
=
{
"Detection_zone"
:
batch
.
batchdate
,
"CreatTime"
:
batch
.
updated_at
,
"company_name"
:
batch
.
companyname
,
"Task_Num"
:
batch
.
id
,
"fi"
:
arrayfi
,
"ri"
:
tmp
,
}
//修改
return
paramto
;
}
//让黄静调用一下
async
buildWordReport
(
batchid
){
var
batch
=
await
this
.
db
.
models
.
uploadbatch
.
findById
(
batchid
);
...
...
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