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
06f681e1
Commit
06f681e1
authored
Jan 02, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
6ab1b3a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+9
-1
fi-taxctl/app/base/utils/redisClient.js
+6
-9
fi-taxctl/app/config/localsettings.js
+1
-1
No files found.
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
06f681e1
...
@@ -61,13 +61,21 @@ class RptTypeService extends ServiceBase{
...
@@ -61,13 +61,21 @@ class RptTypeService extends ServiceBase{
}});
}});
}
}
async
queryReport
(
batchid
){
async
queryReport
(
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
rs
=
await
this
.
db
.
models
.
result
.
findAll
({
where
:{
"BatchNo"
:
batchid
},
attributes
:[
"indexName"
,
"status"
],
raw
:
true
});
var
tmp
=
{};
var
tmp
=
{};
rs
.
forEach
((
item
=>
{
rs
.
forEach
((
item
=>
{
tmp
[
item
.
indexName
]
=
Number
(
item
.
status
);
tmp
[
item
.
indexName
]
=
Number
(
item
.
status
);
}));
}));
var
rptdata
=
await
this
.
apiCallWithoutAk
(
"http://fkrptresult-service/gsb/api/report"
,
tmp
);
var
rptdata
=
await
this
.
apiCallWithoutAk
(
"http://fkrptresult-service/gsb/api/report"
,
tmp
);
return
rptdata
;
var
rtn
=
{
batchdate
:
batch
.
batchdate
,
rptdate
:
batch
.
updated_at
,
companyName
:
batch
.
companyname
,
taxCode
:
batch
.
companycode
,
results
:
rptdata
,
};
return
rtn
;
}
}
async
saveRpt
(
upinfo
){
async
saveRpt
(
upinfo
){
return
this
.
db
.
transaction
(
async
t
=>
{
return
this
.
db
.
transaction
(
async
t
=>
{
...
...
fi-taxctl/app/base/utils/redisClient.js
View file @
06f681e1
...
@@ -228,15 +228,12 @@ class RedisClient {
...
@@ -228,15 +228,12 @@ class RedisClient {
}
}
module
.
exports
=
RedisClient
;
module
.
exports
=
RedisClient
;
var
client
=
new
RedisClient
();
// var client=new RedisClient();
(
async
()
=>
{
// (async ()=>{
await
client
.
rpush
(
"riskmq"
,
JSON
.
stringify
({
// var x=await client.rpop("riskmq");
key
:
"riskmq"
,
// var m=JSON.parse(x);
content
:
"mmffddfd"
// console.log(m);
}));
// })()
console
.
log
(
"end"
);
})()
// client.keys('*').then(s=>{
// client.keys('*').then(s=>{
// console.log(s);
// console.log(s);
...
...
fi-taxctl/app/config/localsettings.js
View file @
06f681e1
...
@@ -3,7 +3,7 @@ var settings={
...
@@ -3,7 +3,7 @@ var settings={
host
:
"43.247.184.32"
,
host
:
"43.247.184.32"
,
port
:
8967
,
port
:
8967
,
password
:
"Gongsibao2018"
,
password
:
"Gongsibao2018"
,
db
:
15
,
db
:
2
,
},
},
database
:
{
database
:
{
dbname
:
"fktaxctl"
,
dbname
:
"fktaxctl"
,
...
...
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