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
6dff421d
Commit
6dff421d
authored
Mar 14, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
4e4f9517
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
xggsve-invoice/app/base/db/impl/invoice/iinvoicedeliverDao.js
+12
-2
xggsve-invoice/app/base/service/impl/invoice/iinvoicedeliverSve.js
+1
-1
No files found.
xggsve-invoice/app/base/db/impl/invoice/iinvoicedeliverDao.js
View file @
6dff421d
...
...
@@ -42,8 +42,12 @@ class IinvoicedeliverDao extends Dao {
sql
.
push
(
"SELECT"
);
sql
.
push
(
"t1.`product_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 @
6dff421d
...
...
@@ -34,7 +34,7 @@ class IinvoicedeliverService extends ServiceBase {
if
(
list
)
{
for
(
var
item
of
list
)
{
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