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
e51a96b0
Commit
e51a96b0
authored
Dec 26, 2019
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
ea88d44d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
taskexecutor/app/base/db/task/rpt/parseRptTask.js
+1
-1
taskexecutor/app/config/settings.js
+7
-0
No files found.
taskexecutor/app/base/db/task/rpt/parseRptTask.js
View file @
e51a96b0
...
@@ -54,7 +54,7 @@ async readxls(path) {
...
@@ -54,7 +54,7 @@ async readxls(path) {
var
parserByCode
=
require
(
"./rptHandler/"
+
rptCode
);
var
parserByCode
=
require
(
"./rptHandler/"
+
rptCode
);
var
rows
=
await
parserByCode
(
wb
);
var
rows
=
await
parserByCode
(
wb
);
console
.
log
(
JSON
.
stringify
(
rows
));
console
.
log
(
JSON
.
stringify
(
rows
));
this
.
apiCallWithAk
(
"http://localhost:3003/api/rpt/rptApi/saveRptHistory"
,{
this
.
apiCallWithAk
(
settings
.
fkweb
()
,{
rptid
:
rptid
,
rptid
:
rptid
,
batchid
:
bid
,
batchid
:
bid
,
rptdate
:
rptDate
,
rptdate
:
rptDate
,
...
...
taskexecutor/app/config/settings.js
View file @
e51a96b0
...
@@ -14,6 +14,13 @@ var ENVINPUT={
...
@@ -14,6 +14,13 @@ var ENVINPUT={
var
settings
=
{
var
settings
=
{
env
:
ENVINPUT
.
APP_ENV
,
env
:
ENVINPUT
.
APP_ENV
,
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
fkweb
:
function
(){
if
(
this
.
env
==
"dev"
){
return
"http://localhost:3003/api/rpt/rptApi/saveRptHistory"
;
}
else
{
return
"http://fktaxctl-service/api/rpt/rptApi/saveRptHistory"
;
}
},
redis
:
function
(){
redis
:
function
(){
if
(
this
.
env
==
"dev"
){
if
(
this
.
env
==
"dev"
){
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
...
...
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