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
ed883eed
Commit
ed883eed
authored
May 14, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
0f353c14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
xggsve-invoice/app/base/api/impl/op/action.js
+3
-0
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
+11
-0
No files found.
xggsve-invoice/app/base/api/impl/op/action.js
View file @
ed883eed
...
...
@@ -99,6 +99,9 @@ class ActionAPI extends APIBase {
case
"invoiceBycreditCode"
:
//根据统一社会信用代码查询发票
opResult
=
await
this
.
iinvoiceSve
.
invoiceBycreditCode
(
action_body
);
break
;
case
"getSaasInvoiceById"
:
//根据统一社会信用代码查询发票
opResult
=
await
this
.
saasinvoiceapplySve
.
getSaasInvoiceById
(
action_body
);
break
;
// case "verificationAndCalculation": // 发票试算接口
// opResult = await rule.dispatcher(action_body);
...
...
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
View file @
ed883eed
...
...
@@ -217,6 +217,16 @@ class SaasinvoiceapplyService extends ServiceBase {
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
/**
* 根据ID 查询想i昂
* @param params
* @returns {Promise<void>}
*/
async
getSaasInvoiceById
(
params
){
let
res
=
await
this
.
dao
.
getById
(
this
.
trim
(
params
.
id
),
this
.
trim
(
params
.
attrs
));
return
system
.
getResult
(
res
||
{});
}
}
module
.
exports
=
SaasinvoiceapplyService
;
\ No newline at end of file
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