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
db2e16b3
Commit
db2e16b3
authored
Mar 10, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
04675577
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
xggsve-invoice/app/base/db/models/invoice/iinvoiceprocess.js
+2
-1
xggsve-invoice/app/base/service/impl/invoice/iinvoiceSve.js
+5
-2
xggsve-invoice/app/config/localsettings.js
+1
-1
No files found.
xggsve-invoice/app/base/db/models/invoice/iinvoiceprocess.js
View file @
db2e16b3
...
@@ -24,7 +24,7 @@ module.exports = function (db, DataTypes) {
...
@@ -24,7 +24,7 @@ module.exports = function (db, DataTypes) {
underscore
:
true
,
underscore
:
true
,
paranoid
:
true
,
paranoid
:
true
,
version
:
true
,
version
:
true
,
tableName
:
'i_
product
_process'
,
tableName
:
'i_
invoice
_process'
,
comment
:
'发票产品流程表'
,
comment
:
'发票产品流程表'
,
});
});
}
}
\ No newline at end of file
xggsve-invoice/app/base/service/impl/invoice/iinvoiceSve.js
View file @
db2e16b3
...
@@ -14,6 +14,9 @@ class IInvoiceService extends ServiceBase {
...
@@ -14,6 +14,9 @@ class IInvoiceService extends ServiceBase {
this
.
iinvoiceprocessDao
=
system
.
getObject
(
"db.invoice.iinvoiceprocessDao"
);
this
.
iinvoiceprocessDao
=
system
.
getObject
(
"db.invoice.iinvoiceprocessDao"
);
this
.
iinvoiceinforegDao
=
system
.
getObject
(
"db.invoice.iinvoiceinforegDao"
);
this
.
iinvoiceinforegDao
=
system
.
getObject
(
"db.invoice.iinvoiceinforegDao"
);
this
.
iinvoicedeliverDao
=
system
.
getObject
(
"db.invoice.iinvoicedeliverDao"
);
this
.
iinvoicedeliverDao
=
system
.
getObject
(
"db.invoice.iinvoicedeliverDao"
);
this
.
iproductDao
=
system
.
getObject
(
"db.product.iproductDao"
);
this
.
iprocessDao
=
system
.
getObject
(
"db.product.iprocessDao"
);
this
.
iproductprocessDao
=
system
.
getObject
(
"db.product.iproductprocessDao"
);
}
}
/**
/**
...
@@ -36,14 +39,14 @@ class IInvoiceService extends ServiceBase {
...
@@ -36,14 +39,14 @@ class IInvoiceService extends ServiceBase {
async
buildProcess
(
params
)
{
async
buildProcess
(
params
)
{
let
productPid
=
params
.
productPid
||
50010000
;
let
productPid
=
params
.
productPid
||
50010000
;
// 查询产品流程
// 查询产品流程
let
productProcessList
=
await
this
.
o
productprocessDao
.
byProductPid
(
productPid
);
let
productProcessList
=
await
this
.
i
productprocessDao
.
byProductPid
(
productPid
);
if
(
!
productProcessList
||
productProcessList
.
length
==
0
)
{
if
(
!
productProcessList
||
productProcessList
.
length
==
0
)
{
return
[];
return
[];
}
}
let
invoiceProcessList
=
[];
let
invoiceProcessList
=
[];
// 批量查流程
// 批量查流程
let
processMap
=
await
this
.
o
processDao
.
mapAll
();
let
processMap
=
await
this
.
i
processDao
.
mapAll
();
for
(
let
productProcess
of
productProcessList
)
{
for
(
let
productProcess
of
productProcessList
)
{
// 风还钻该处理每一个子项流程 变为 订单流程对象
// 风还钻该处理每一个子项流程 变为 订单流程对象
...
...
xggsve-invoice/app/config/localsettings.js
View file @
db2e16b3
...
@@ -6,7 +6,7 @@ var settings={
...
@@ -6,7 +6,7 @@ var settings={
db
:
10
,
db
:
10
,
},
},
database
:{
database
:{
dbname
:
"xgg-invoice"
,
dbname
:
"xgg-invoice
1
"
,
user
:
"write"
,
user
:
"write"
,
password
:
"write"
,
password
:
"write"
,
config
:
{
config
:
{
...
...
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