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
aa1372b4
Commit
aa1372b4
authored
Dec 25, 2019
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
23f2ec45
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
21 deletions
+7
-21
fi-taxctl/.vscode/launch.json
+0
-15
fi-taxctl/app/base/api/api.base.js
+1
-1
fi-taxctl/app/base/api/impl/rpt/rptApi.js
+3
-0
fi-taxctl/app/base/db/impl/rpt/rpttypeDao.js
+0
-1
fi-taxctl/app/base/service/impl/common/apitradeSve.js
+0
-1
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+3
-3
No files found.
fi-taxctl/.vscode/launch.json
deleted
100644 → 0
View file @
23f2ec45
{
//
Use
IntelliSense
to
learn
about
possible
attributes.
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit
:
https
:
//go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"node"
,
"request"
:
"launch"
,
"name"
:
"Launch Program"
,
"program"
:
"${workspaceFolder}/main.js"
}
]
}
\ No newline at end of file
fi-taxctl/app/base/api/api.base.js
View file @
aa1372b4
...
...
@@ -12,7 +12,7 @@ class APIBase extends DocBase {
async
isExistInNoAuthMainfest
(
gname
,
methodname
)
{
var
fullname
=
gname
+
"."
+
methodname
;
var
lst
=
[
"rpt.
rptApi
"
"rpt.
saveRptHistory
"
];
var
x
=
lst
.
indexOf
(
fullname
);
return
x
>=
0
;
...
...
fi-taxctl/app/base/api/impl/rpt/rptApi.js
View file @
aa1372b4
...
...
@@ -62,10 +62,13 @@ class RptAPI extends APIBase{
]
}*/
async
saveRpt
(
pobj
,
query
){
var
x
=
await
this
.
rptService
.
saveRpt
(
pobj
);
return
system
.
getResult
(
x
);
}
async
saveRptHistory
(
pobj
,
query
){
console
.
log
(
JSON
.
stringify
(
pobj
));
return
{};
var
x
=
await
this
.
rptService
.
saveRptHistory
(
pobj
);
return
system
.
getResult
(
x
);
}
...
...
fi-taxctl/app/base/db/impl/rpt/rpttypeDao.js
View file @
aa1372b4
...
...
@@ -4,7 +4,6 @@ class RptTypeDao extends Dao{
constructor
(){
super
(
Dao
.
getModelName
(
RptTypeDao
));
}
}
module
.
exports
=
RptTypeDao
;
fi-taxctl/app/base/service/impl/common/apitradeSve.js
View file @
aa1372b4
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
ServiceBase
=
require
(
"../../sve.base"
)
var
WXPay
=
require
(
'wx-pay'
);
const
uuidv4
=
require
(
'uuid/v4'
);
class
ApiTradeService
extends
ServiceBase
{
constructor
(){
...
...
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
aa1372b4
...
...
@@ -3,7 +3,7 @@ const ServiceBase=require("../../sve.base")
const
settings
=
require
(
"../../../../config/settings"
)
class
RptTypeService
extends
ServiceBase
{
constructor
(){
super
(
"
auth
"
,
ServiceBase
.
getDaoName
(
RptTypeService
));
super
(
"
rpt
"
,
ServiceBase
.
getDaoName
(
RptTypeService
));
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
}
async
saveRptHistory
(
hs
){
...
...
@@ -81,8 +81,8 @@ class RptTypeService extends ServiceBase{
//保存报表
await
this
.
db
.
models
.
uploadrpt
.
bulkCreate
(
rpts
,{
transaction
:
t
});
try
{
rpts
.
forEach
((
rpt
)
=>
{
await
this
.
redisClient
.
notifyConsume
(
"k8stask"
,
"docurls"
,
rpt
.
rptdate
+
"~"
+
rpt
.
rpttypecode
+
"~"
+
rpt
.
urlpath
);
rpts
.
forEach
(
async
(
rpt
)
=>
{
await
this
.
redisClient
.
notifyConsume
(
"k8stask"
,
"docurls"
,
batchtemp
.
id
+
"~"
+
rpt
.
rptdate
+
"~"
+
rpt
.
rpttypecode
+
"~"
+
rpt
.
urlpath
);
});
}
catch
(
e
){
//需要记录要清理的批号历史数据
...
...
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