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
b7591ff4
Commit
b7591ff4
authored
Jun 08, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
8a1b8507
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
xggsve-merchant/app/base/service/impl/merchant/saasmerchantSve.js
+9
-0
No files found.
xggsve-merchant/app/base/service/impl/merchant/saasmerchantSve.js
View file @
b7591ff4
...
...
@@ -6,6 +6,7 @@ class SaasMerchantService extends ServiceBase {
super
(
"merchant"
,
ServiceBase
.
getDaoName
(
SaasMerchantService
));
this
.
saasmerchantsignDao
=
system
.
getObject
(
"db.merchant.saasmerchantsignDao"
);
this
.
saasmainDao
=
system
.
getObject
(
"db.main.saasmainDao"
);
this
.
saasmerchantsettingsDao
=
system
.
getObject
(
"db.merchant.saasmerchantsettingsDao"
);
this
.
saasmerchanttitleDao
=
system
.
getObject
(
"db.merchant.saasmerchanttitleDao"
);
this
.
saasmerchantaddrDao
=
system
.
getObject
(
"db.merchant.saasmerchantaddrDao"
);
...
...
@@ -53,6 +54,14 @@ class SaasMerchantService extends ServiceBase {
let
sign
=
await
this
.
saasmerchantsignDao
.
getById
(
params
.
id
);
this
.
handleDate
(
sign
,
[
"created_at"
],
null
,
-
8
);
this
.
handleDate
(
sign
,
[
"begin_date"
,
"end_date"
],
"YYYY-MM-DD"
);
/**
* TODO:这里只查询个体户注册签约的主题,如果以后添加发票等签约主体,需要新增查询
*/
let
saas_main
=
null
;
if
(
sign
.
main_id
)
{
saas_main
=
await
this
.
saasmainDao
.
getById
(
sign
.
main_id
);
}
sign
.
saas_main
=
saas_main
||
{};
merchant
.
sign
=
sign
;
return
system
.
getResultSuccess
(
merchant
);
}
...
...
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