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
58d2f4c8
Commit
58d2f4c8
authored
Apr 23, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
ebfa5eae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletions
+36
-1
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
+8
-0
xgg-saas-platform/app/base/service/impl/saas/saasinvoiceSve.js
+27
-0
xgg-saas-platform/app/base/system.js
+1
-1
No files found.
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
View file @
58d2f4c8
...
@@ -400,6 +400,14 @@ class InvoiceCtl extends CtlBase {
...
@@ -400,6 +400,14 @@ class InvoiceCtl extends CtlBase {
}
}
}
}
//fn:查询发票(saas_invoice,saas_invoice_apply,st_order_item)详细信息
async
queryInvoiceStOrderItem
(
params
,
pobj2
,
req
){
if
(
!
params
.
id
){
return
system
.
getResult
(
null
,
`发票【
${
params
.
id
}
】不存在`
);
}
return
await
this
.
saasinvoiceSve
.
queryInvoiceStOrderItem
(
params
);
}
}
}
module
.
exports
=
InvoiceCtl
;
module
.
exports
=
InvoiceCtl
;
xgg-saas-platform/app/base/service/impl/saas/saasinvoiceSve.js
View file @
58d2f4c8
...
@@ -149,5 +149,31 @@ class SaasinvoiceService extends ServiceBase {
...
@@ -149,5 +149,31 @@ class SaasinvoiceService extends ServiceBase {
console
.
log
(
"invoice handle push result:"
,
res
.
data
);
console
.
log
(
"invoice handle push result:"
,
res
.
data
);
return
res
.
data
;
return
res
.
data
;
}
}
/**
* fn:查询发票(saas_invoice,saas_invoice_apply,st_order_item)详细信息
* @param params
* @returns {Promise<void>}
*/
async
queryInvoiceStOrderItem
(
params
){
try
{
//将saas_invoice 和saas_invoice_apply的信息查出来
let
res
=
await
this
.
callms
(
"invoice"
,
"saasInvoiceInfo"
,
params
);
if
(
res
.
status
!=
0
||
!
res
.
data
){
return
system
.
getResult
(
null
,
'网络请求超时'
);
}
let
saasInvoice
=
res
.
data
;
//将对应的交易流水也查出来 st_order_item
let
invoiceOrderRes
=
await
this
.
callms
(
"order"
,
"saasOrderPage"
,
{
saas_invoice_id
:
this
.
trim
(
params
.
id
)
,
currentPage
:
1
,
pageSize
:
99999
});
if
(
invoiceOrderRes
.
status
==
0
)
{
invoiceOrderRes
=
invoiceOrderRes
.
data
.
rows
||
[];
}
saasInvoice
.
invoiceOrder
=
invoiceOrderRes
;
return
system
.
getResult
(
saasInvoice
);
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
}
}
module
.
exports
=
SaasinvoiceService
;
module
.
exports
=
SaasinvoiceService
;
\ No newline at end of file
xgg-saas-platform/app/base/system.js
View file @
58d2f4c8
...
@@ -197,7 +197,7 @@ class System {
...
@@ -197,7 +197,7 @@ class System {
merchant
:
dev
+
":3101"
+
path
,
merchant
:
dev
+
":3101"
+
path
,
// 订单服务
// 订单服务
order
:
dev
+
":3103"
+
path
,
order
:
local
+
":3103"
+
path
,
// 发票服务
// 发票服务
invoice
:
dev
+
":3105"
+
path
,
invoice
:
dev
+
":3105"
+
path
,
...
...
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