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
03cd7141
Commit
03cd7141
authored
Apr 12, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xggsve-invoice' of gitlab.gongsibao.com:jiangyong/zhichan into xggsve-invoice
parents
be547d98
aa6e0b25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
+6
-7
No files found.
xggsve-invoice/app/base/service/impl/invoice/saasinvoiceapplySve.js
View file @
03cd7141
...
...
@@ -14,7 +14,7 @@ class SaasinvoiceapplyService extends ServiceBase {
this
.
dictionary
=
system
.
getObject
(
"util.dictionary"
);
}
async
byId
(
params
)
{
let
apply
=
this
.
dao
.
getById
(
params
.
id
);
let
apply
=
await
this
.
dao
.
getById
(
params
.
id
);
this
.
handleDate
(
apply
,
[
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
this
.
dictionary
.
setRowName
(
"SAAS_INVOICE_APPLY"
,
apply
,[
"owner_type"
,
"fee_type"
,
"invoice_type"
,
"invoice_join"
]);
return
system
.
getResult
(
apply
);
...
...
@@ -108,12 +108,11 @@ class SaasinvoiceapplyService extends ServiceBase {
invoice
.
invoice_time
=
this
.
trim
(
params
.
invoice_time
);
invoice
.
mail_no
=
this
.
trim
(
params
.
mail_no
);
invoice
.
invoice_img
=
this
.
trim
(
params
.
invoice_img
);
// await this.db.transaction(async t => {
// _invoice = await this.dao.create(_invoice, t);
// await this.iinvoiceprocessDao.model.bulkCreate(processList, { transaction: t });
// });
invoice
=
await
this
.
saasinvoiceDao
.
create
(
invoice
);
invoice
=
await
this
.
db
.
transaction
(
async
t
=>
{
invoice
=
await
this
.
saasinvoiceDao
.
create
(
invoice
,
t
);
await
this
.
dao
.
update
({
id
:
apply
.
id
,
status
:
"1040"
},
t
);
return
invoice
;
});
return
system
.
getResultSuccess
(
invoice
);
}
...
...
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