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
14d5466c
Commit
14d5466c
authored
Apr 07, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
94691345
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
55 deletions
+118
-55
xgg-saas-platform/app/base/controller/impl/merchant/saasmerchantCtl.js
+78
-0
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
+0
-55
xgg-saas-platform/app/base/service/impl/merchant/saasmerchantSve.js
+40
-0
No files found.
xgg-saas-platform/app/base/controller/impl/merchant/saasmerchantCtl.js
0 → 100644
View file @
14d5466c
var
system
=
require
(
"../../../system"
)
const
CtlBase
=
require
(
"../../ctlms.base"
);
class
SaasnvoiceCtl
extends
CtlBase
{
constructor
()
{
super
();
this
.
saasmerchantSve
=
system
.
getObject
(
"service.merchant.saasmerchantSve"
);
}
/**
* 发票信息管理
* @param {*} pobj2
* @param {*} pobj2
* @param {*} req
*/
async
merchantTitleAddrPage
(
pobj1
,
pobj2
,
req
){
try
{
return
this
.
saasmerchantSve
.
merchantTitleAddrPage
(
pobj1
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
/**
* 发票信息修改
* @param {*} pobj2
* @param {*} pobj2
* @param {*} req
*/
async
updateMerchantTitleAndAddr
(
pobj1
,
pobj2
,
req
){
try
{
if
(
!
pobj1
.
id
){
return
system
.
getResult
(
null
,
`参数错误 ID 不能为空`
);
}
return
this
.
saasmerchantSve
.
updateMerchantTitleAndAddr
(
pobj1
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
/**
* query invoice title&addr information
* @param {*} pobj1
* @param {*} pobj2
* @param {*} req
*/
async
queryInvoiceTitleAndAddr
(
pobj1
,
pobj2
,
req
){
try
{
return
this
.
saasmerchantSve
.
queryInvoiceTitleAndAddr
(
pobj1
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
/**
* query invoice title&addr information
* @param {*} pobj1
* @param {*} pobj2
* @param {*} req
*/
async
updateOrSaveTitleAndAddr
(
pobj1
,
pobj2
,
req
){
try
{
return
this
.
saasmerchantSve
.
updateOrSaveTitleAndAddr
(
pobj1
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
}
module
.
exports
=
SaasnvoiceCtl
;
\ No newline at end of file
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
deleted
100644 → 0
View file @
94691345
var
system
=
require
(
"../../../system"
)
const
CtlBase
=
require
(
"../../ctlms.base"
);
class
InvoiceCtl
extends
CtlBase
{
constructor
()
{
super
();
this
.
orderSve
=
system
.
getObject
(
"service.saas.orderSve"
);
}
async
platformInfo
(
params
,
pobj2
,
req
)
{
try
{
return
await
this
.
orderSve
.
platformInfo
(
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
info
(
params
,
pobj2
,
req
)
{
try
{
return
await
this
.
orderSve
.
info
(
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
page
(
params
,
pobj2
,
req
)
{
try
{
return
await
this
.
orderSve
.
page
(
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
audit
(
params
,
pobj2
,
req
)
{
if
(
params
.
audit_status
!=
"20"
&&
params
.
audit_status
!=
"30"
)
{
return
system
.
getResult
(
null
,
"审核状态错误"
);
}
try
{
return
await
this
.
orderSve
.
audit
(
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
async
deliver
(
params
,
pobj2
,
req
)
{
try
{
return
await
this
.
orderSve
.
deliver
(
params
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
module
.
exports
=
InvoiceCtl
;
\ No newline at end of file
xgg-saas-platform/app/base/service/impl/merchant/saasmerchantSve.js
0 → 100644
View file @
14d5466c
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../svems.base"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
SaasInvoiceService
extends
ServiceBase
{
constructor
(){
super
();
}
/**
* 发票信息管理
* @param {*} params
*/
async
merchantTitleAddrPage
(
params
){
return
await
this
.
callms
(
"merchant"
,
"merchantTitleAddrPage"
,
params
);
}
/**
* 发票信息修改
* @param {*} params
*/
async
updateMerchantTitleAndAddr
(
params
){
return
await
this
.
callms
(
"merchant"
,
"updateMerchantTitleAndAddr"
,
params
);
}
/**
* query invoice title&addr information
* @param {*} params
*/
async
queryInvoiceTitleAndAddr
(
params
){
return
await
this
.
callms
(
"merchant"
,
"queryInvoiceTitleAndAddr"
,
params
);
}
/**
* 更新添加title&addr
* @param {*} params
*/
async
updateOrSaveTitleAndAddr
(
params
){
return
await
this
.
callms
(
"merchant"
,
"updateOrSaveTitleAndAddr"
,
params
);
}
}
module
.
exports
=
SaasInvoiceService
;
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