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
2e47f59c
Commit
2e47f59c
authored
Feb 10, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
dd63e965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+5
-11
No files found.
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
2e47f59c
...
@@ -11,7 +11,7 @@ class RptTypeService extends ServiceBase{
...
@@ -11,7 +11,7 @@ class RptTypeService extends ServiceBase{
this
.
countMap
=
{};
//按照报表类型编码顺序号计数
this
.
countMap
=
{};
//按照报表类型编码顺序号计数
this
.
posMap
=
{};
//位置映射编码--兼容初始公式
this
.
posMap
=
{};
//位置映射编码--兼容初始公式
this
.
codeMap
=
{};
//编码映射位置,检查是否是否需要新增编码
this
.
codeMap
=
{};
//编码映射位置,检查是否是否需要新增编码
this
.
cacheModiRptDate
=
{};
//
this.cacheModiRptDate={};
}
}
async
queryPosMap
(){
async
queryPosMap
(){
if
(
Object
.
keys
(
this
.
posMap
).
length
==
0
){
if
(
Object
.
keys
(
this
.
posMap
).
length
==
0
){
...
@@ -58,7 +58,7 @@ class RptTypeService extends ServiceBase{
...
@@ -58,7 +58,7 @@ class RptTypeService extends ServiceBase{
});
});
}
}
}
}
var
cacheModiRptDate
=
[];
hisdata
.
forEach
(
hd
=>
{
hisdata
.
forEach
(
hd
=>
{
var
pposition
=
md5
(
hd
.
desc
);
var
pposition
=
md5
(
hd
.
desc
);
var
h
=
{
var
h
=
{
...
@@ -79,14 +79,12 @@ class RptTypeService extends ServiceBase{
...
@@ -79,14 +79,12 @@ class RptTypeService extends ServiceBase{
//判断报表编码是否含有_N,如果有,那么就按照报表id去修改报表中的日期字段
//判断报表编码是否含有_N,如果有,那么就按照报表id去修改报表中的日期字段
if
(
rptcode
.
indexOf
(
"_N"
)
>=
0
){
if
(
rptcode
.
indexOf
(
"_N"
)
>=
0
){
if
(
!
this
.
cacheModiRptDate
[
batchid
]){
var
tmps
=
batchid
+
"~"
+
rptid
;
this
.
cacheModiRptDate
[
batchid
]
=
[];
}
//判断是否修改过日期
//判断是否修改过日期
if
(
this
.
cacheModiRptDate
[
batchid
].
indexOf
(
rptid
)
<
0
){
if
(
cacheModiRptDate
.
indexOf
(
tmps
)
<
0
){
//按照报表ID修改日期 ""
//按照报表ID修改日期 ""
self
.
db
.
models
.
uploadrpt
.
update
({
"rptdate"
:
rptdate
},{
where
:
{
id
:
rptid
},
transaction
:
t
})
self
.
db
.
models
.
uploadrpt
.
update
({
"rptdate"
:
rptdate
},{
where
:
{
id
:
rptid
},
transaction
:
t
})
this
.
cacheModiRptDate
[
batchid
].
push
(
rptid
);
cacheModiRptDate
.
push
(
tmps
);
}
}
}
}
...
@@ -143,10 +141,6 @@ class RptTypeService extends ServiceBase{
...
@@ -143,10 +141,6 @@ class RptTypeService extends ServiceBase{
}));
}));
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sended..........."
);
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sended..........."
);
self
.
redisClient
.
delete
(
"batch"
+
batchid
);
self
.
redisClient
.
delete
(
"batch"
+
batchid
);
//清空批报表缓存
if
(
this
.
cacheModiRptDate
[
batchid
]){
delete
this
.
cacheModiRptDate
[
batchid
]
}
//改变批的状态为解析完毕
//改变批的状态为解析完毕
batch
.
batchstatuscode
=
"calc"
;
batch
.
batchstatuscode
=
"calc"
;
await
batch
.
save
({
transaction
:
t
});
await
batch
.
save
({
transaction
:
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