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
98d10314
Commit
98d10314
authored
Apr 29, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
6de828a0
Hide 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
+10
-3
xggsve-invoice/app/base/service/impl/invoice/iinvoicedeliverSve.js
+3
-0
No files found.
xggsve-invoice/app/base/db/impl/invoice/iinvoicedeliverDao.js
View file @
98d10314
...
...
@@ -47,7 +47,9 @@ class IinvoicedeliverDao extends Dao {
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`, t1.red_status"
);
sql
.
push
(
"t1.`created_at`, t1.`status`, t1.red_status,"
);
sql
.
push
(
"t2.`deliver_name`, t2.deliver_delive, t2.deliver_mail_no, t2.deliver_img,"
);
sql
.
push
(
"t2.`operator_id`"
);
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 "
);
...
...
@@ -90,7 +92,7 @@ class IinvoicedeliverDao extends Dao {
sql
.
push
(
"AND t1.`red_status` = :red_status"
);
}
if
(
params
.
deliver_id
)
{
sql
.
push
(
"AND t
1
.`deliver_id` = :deliver_id"
);
sql
.
push
(
"AND t
2
.`deliver_id` = :deliver_id"
);
}
if
(
params
.
bd_id
)
{
sql
.
push
(
"AND t1.`bd_id` = :bd_id"
);
...
...
@@ -99,10 +101,15 @@ class IinvoicedeliverDao extends Dao {
params
.
bd_path_like
=
params
.
bd_path
+
"%"
;
sql
.
push
(
"AND t1.`bd_path` = :bd_path_like"
);
}
if
(
params
.
assigned
)
{
sql
.
push
(
"AND t2.`operator_id` <> '' AND t2.`operator_id` IS NOT NULL "
);
}
if
(
params
.
operator_id
)
{
sql
.
push
(
"AND t2.`operator_id` = :operator_id"
);
}
if
(
params
.
operator_path_like
)
{
sql
.
push
(
"AND t2.`operator_path` = :operator_path_like"
);
}
}
/**
...
...
xggsve-invoice/app/base/service/impl/invoice/iinvoicedeliverSve.js
View file @
98d10314
...
...
@@ -24,6 +24,9 @@ class IinvoicedeliverService extends ServiceBase {
params
.
startRow
=
Number
((
params
.
currentPage
-
1
)
*
params
.
pageSize
);
let
deliver_id
=
params
.
deliver_id
;
if
(
!
deliver_id
)
{
return
system
.
getResult
({
count
:
0
,
rows
:
[]});
}
let
total
=
await
this
.
dao
.
countByParams
(
params
);
if
(
total
==
0
)
{
...
...
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