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
5d6c1427
Commit
5d6c1427
authored
Mar 14, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xggsve-invoice-dev' of gitlab.gongsibao.com:jiangyong/zhichan into xggsve-invoice-dev
parents
1c041070
c2c76460
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
xggsve-invoice/app/base/db/impl/invoice/iinvoicedeliverDao.js
+12
-2
xggsve-invoice/app/base/service/impl/invoice/iinvoicedeliverSve.js
+2
-1
No files found.
xggsve-invoice/app/base/db/impl/invoice/iinvoicedeliverDao.js
View file @
5d6c1427
...
...
@@ -42,8 +42,12 @@ class IinvoicedeliverDao extends Dao {
sql
.
push
(
"SELECT"
);
sql
.
push
(
"t1.`product_id`, t1.`id`,"
);
sql
.
push
(
"t1.`apply_no`, t1.`invoice_type`, t1.`invoice_amount`, "
);
sql
.
push
(
"t1.`apply_time`, t1.invoice_time, t1.`created_at`, t1.`status`, "
);
sql
.
push
(
"t1.`merchant_name`, t1.businessmen_name"
);
sql
.
push
(
"t1.`apply_time`, t1.invoice_no, t1.invoice_time, t1.invoice_number, "
);
sql
.
push
(
"t1.businessmen_name, t1.businessmen_credit_code, t1.businessmen_addr, "
);
sql
.
push
(
"t1.businessmen_mobile, t1.businessmen_bank, t1.businessmen_account,"
);
sql
.
push
(
"t1.merchant_name, t1.merchant_credit_code, t1.merchant_addr,"
);
sql
.
push
(
"t1.merchant_mobile, t1.merchant_bank, t1.merchant_account,"
);
sql
.
push
(
"t1.`created_at`, t1.`status`"
);
sql
.
push
(
"FROM i_invoice_deliver t2"
);
sql
.
push
(
"INNER JOIN i_invoice t1 on t1.id = t2.invoice_id"
);
sql
.
push
(
"WHERE 1 = 1 "
);
...
...
@@ -61,6 +65,12 @@ class IinvoicedeliverDao extends Dao {
if
(
params
.
apply_no
)
{
sql
.
push
(
"AND t1.`apply_no` = :apply_no"
);
}
if
(
params
.
invoice_no
)
{
sql
.
push
(
"AND t1.`invoice_no` = :invoice_no"
);
}
if
(
params
.
invoice_number
)
{
sql
.
push
(
"AND t1.`invoice_number` = :invoice_number"
);
}
if
(
params
.
status
)
{
sql
.
push
(
"AND t1.`status` = :status"
);
}
...
...
xggsve-invoice/app/base/service/impl/invoice/iinvoicedeliverSve.js
View file @
5d6c1427
...
...
@@ -33,8 +33,9 @@ class IinvoicedeliverService extends ServiceBase {
let
list
=
await
this
.
dao
.
pageByParams
(
params
);
if
(
list
)
{
for
(
var
item
of
list
)
{
item
.
red_status_name
=
"未红冲"
;
this
.
handleDate
(
item
,
[
'updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss'
);
this
.
handleDate
(
item
,
[
'
updated_at'
,
'created_at'
],
'YYYY-MM-DD HH:mm:ss
'
);
this
.
handleDate
(
item
,
[
'
invoice_time'
,
'apply_time'
],
'YYYY-MM-DD
'
);
}
await
this
.
setStatus
(
list
);
await
this
.
setProduct
(
list
);
...
...
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