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
6301c95b
Commit
6301c95b
authored
Jan 03, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
06f681e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
3 deletions
+47
-3
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+10
-3
fi-taxctl/app/base/test2.js
+37
-0
No files found.
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
6301c95b
...
...
@@ -35,6 +35,7 @@ class RptTypeService extends ServiceBase{
await
self
.
db
.
models
.
rpthistory
.
bulkCreate
(
hisarray
,{
transaction
:
t
});
//每保存一次历史数据,就是处理完成一个任务中的一个报表
var
currentval
=
await
self
.
redisClient
.
decr
(
"batch"
+
batchid
);
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+
currentval
);
if
(
currentval
==
0
){
await
self
.
redisClient
.
rpush
(
"riskmq"
,
JSON
.
stringify
({
key
:
new
Date
().
toLocaleString
(),
...
...
@@ -44,6 +45,7 @@ class RptTypeService extends ServiceBase{
accountTypeCode
:
batch
.
accountstandardcode
,
taxCode
:
batch
.
companycode
}
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sended..........."
);
}));
self
.
redisClient
.
delete
(
"batch"
+
batchid
);
//改变批的状态为解析完毕
...
...
@@ -68,14 +70,19 @@ class RptTypeService extends ServiceBase{
tmp
[
item
.
indexName
]
=
Number
(
item
.
status
);
}));
var
rptdata
=
await
this
.
apiCallWithoutAk
(
"http://fkrptresult-service/gsb/api/report"
,
tmp
);
var
rtn
=
{
if
(
rptdata
){
var
rtn
=
{
batchdate
:
batch
.
batchdate
,
rptdate
:
batch
.
updated_at
,
companyName
:
batch
.
companyname
,
taxCode
:
batch
.
companycode
,
results
:
rptdata
,
};
return
rtn
;
};
return
rtn
;
}
else
{
return
null
;
}
}
async
saveRpt
(
upinfo
){
return
this
.
db
.
transaction
(
async
t
=>
{
...
...
fi-taxctl/app/base/test2.js
View file @
6301c95b
...
...
@@ -142,3 +142,40 @@ console.log(t2.apiDoc);
•
具有良好的沟通表达能力和团队协作能力。
对标白兔
继续
1
,目前没使用
2
,很少使用,
3
,使用中
最后上传日期
2019.7
.
19
功能迁移到
IGIRL
,未产品化
计税宝
注册用户
业务支持使用中
效果好,争取到了项目
使用中,对外展示用
稳定
交易
流量接入
效果不错
尹亚亭
数据库设计
整合和运维各子系统
老系统商标导入蜂擎
申洪蝉
知产接入
对接方案设计
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