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
ee996e33
Commit
ee996e33
authored
Apr 09, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
b76b8df6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
xggsve-merchant/app/base/api/impl/op/action.js
+6
-2
xggsve-merchant/app/base/service/impl/merchant/saasmerchantaddrSve.js
+11
-5
xggsve-merchant/app/base/service/impl/merchant/saasmerchanttitleSve.js
+8
-5
No files found.
xggsve-merchant/app/base/api/impl/op/action.js
View file @
ee996e33
...
@@ -120,8 +120,12 @@ class ActionAPI extends APIBase {
...
@@ -120,8 +120,12 @@ class ActionAPI extends APIBase {
case
"invoiceInfoPage"
:
case
"invoiceInfoPage"
:
opResult
=
await
this
.
saasmerchanttitleSve
.
invoiceInfoPage
(
action_body
);
opResult
=
await
this
.
saasmerchanttitleSve
.
invoiceInfoPage
(
action_body
);
break
;
break
;
case
"mchtTitles"
:
opResult
=
await
this
.
saasmerchanttitleSve
.
byMerchantId
(
action_body
);
break
;
case
"mchtAddrs"
:
opResult
=
await
this
.
saasmerchantaddrSve
.
byMerchantId
(
action_body
);
break
;
// ------------------------------以下api为历史将要弃用的---------------------------------------
// ------------------------------以下api为历史将要弃用的---------------------------------------
// 商户api
// 商户api
// case "infoList":
// case "infoList":
...
...
xggsve-merchant/app/base/service/impl/merchant/saasmerchantaddrSve.js
View file @
ee996e33
const
system
=
require
(
"../../../system"
);
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
)
const
ServiceBase
=
require
(
"../../sve.base"
)
const
settings
=
require
(
"../../../../config/settings"
)
const
settings
=
require
(
"../../../../config/settings"
)
class
Saasmerchant
title
Service
extends
ServiceBase
{
class
Saasmerchant
Addr
Service
extends
ServiceBase
{
constructor
()
{
constructor
()
{
super
(
"merchant"
,
ServiceBase
.
getDaoName
(
Saasmerchant
title
Service
));
super
(
"merchant"
,
ServiceBase
.
getDaoName
(
Saasmerchant
Addr
Service
));
this
.
saasMerchantAddrDao
=
system
.
getObject
(
"db.merchant.saasmerchantaddrDao"
);
}
async
byMerchantId
(
params
)
{
let
list
=
await
this
.
dao
.
getAllByMerchantId
(
params
.
saas_merchant_id
)
||
[];
for
(
let
row
of
list
)
{
this
.
handleDate
(
row
,
[
"created_at"
],
null
,
-
8
);
}
return
system
.
getResultSuccess
(
list
);
}
}
/**
/**
...
@@ -93,4 +99,4 @@ class SaasmerchanttitleService extends ServiceBase {
...
@@ -93,4 +99,4 @@ class SaasmerchanttitleService extends ServiceBase {
}
}
module
.
exports
=
SaasmerchanttitleService
;
module
.
exports
=
SaasmerchantAddrService
;
\ No newline at end of file
\ No newline at end of file
xggsve-merchant/app/base/service/impl/merchant/saasmerchanttitleSve.js
View file @
ee996e33
...
@@ -4,13 +4,15 @@ const settings = require("../../../../config/settings")
...
@@ -4,13 +4,15 @@ const settings = require("../../../../config/settings")
class
SaasmerchanttitleService
extends
ServiceBase
{
class
SaasmerchanttitleService
extends
ServiceBase
{
constructor
()
{
constructor
()
{
super
(
"merchant"
,
ServiceBase
.
getDaoName
(
SaasmerchanttitleService
));
super
(
"merchant"
,
ServiceBase
.
getDaoName
(
SaasmerchanttitleService
));
this
.
saasmerchantaddrDao
=
system
.
getObject
(
"db.merchant.saasmerchantaddrDao"
);
}
}
async
byMerchantId
(
params
)
{
let
list
=
await
this
.
dao
.
getAllByMerchantId
(
params
.
saas_merchant_id
)
||
[];
for
(
let
row
of
list
)
{
this
.
handleDate
(
row
,
[
"created_at"
],
null
,
-
8
);
}
return
system
.
getResultSuccess
(
list
);
}
}
}
module
.
exports
=
SaasmerchanttitleService
;
module
.
exports
=
SaasmerchanttitleService
;
\ 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