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
91bc934e
Commit
91bc934e
authored
Jan 15, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
7b297741
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
xggsve-order/app/base/db/impl/order/obusinessmenDao.js
+18
-10
xggsve-order/app/base/db/impl/order/oorderdeliverDao.js
+1
-1
No files found.
xggsve-order/app/base/db/impl/order/obusinessmenDao.js
View file @
91bc934e
...
...
@@ -38,38 +38,46 @@ class ObusinessmenDao extends Dao {
}
setCondition
(
sql
,
params
)
{
if
(
params
.
order_id
)
{
if
(
params
.
order_id
)
{
sql
.
push
(
"AND t1.order_id = :order_id"
);
}
if
(
params
.
orderIds
&&
params
.
orderIds
.
length
>
0
)
{
if
(
params
.
orderIds
&&
params
.
orderIds
.
length
>
0
)
{
sql
.
push
(
"AND t1.order_id IN (:orderIds)"
);
}
if
(
params
.
name
)
{
if
(
params
.
name
)
{
params
.
name_like
=
"%"
+
params
.
name
+
"%"
;
sql
.
push
(
"AND t1.name LIKE :name_like"
);
}
if
(
params
.
bd_id
)
{
if
(
params
.
bd_id
)
{
sql
.
push
(
"AND t1.bd_id = :bd_id"
);
}
if
(
params
.
bd_path
)
{
if
(
params
.
bd_path
)
{
params
.
bd_path_like
=
params
.
bd_path
+
"%"
;
sql
.
push
(
"AND t1.bd_path LIKE :bd_path_like"
);
}
if
(
params
.
order_id
)
{
if
(
params
.
order_id
)
{
sql
.
push
(
"AND t1.order_id = :order_id"
);
}
if
(
params
.
legal_name
)
{
if
(
params
.
legal_name
)
{
sql
.
push
(
"AND t1.legal_name = :legal_name"
);
}
if
(
params
.
legal_mobile
)
{
if
(
params
.
legal_mobile
)
{
sql
.
push
(
"AND t1.legal_mobile = :legal_mobile"
);
}
if
(
params
.
legal_idcard
)
{
if
(
params
.
legal_idcard
)
{
sql
.
push
(
"AND t1.legal_idcard = :legal_idcard"
);
}
if
(
params
.
credit_code
)
{
if
(
params
.
credit_code
)
{
sql
.
push
(
"AND t1.credit_code = :credit_code"
);
}
if
(
params
.
hasOwnProperty
(
"isSign"
))
{
if
(
params
.
isSign
)
{
sql
.
push
(
"AND t1.sign_time IS NOT NULL"
);
}
else
{
sql
.
push
(
"AND t1.sign_time IS NULL"
);
}
}
}
}
...
...
xggsve-order/app/base/db/impl/order/oorderdeliverDao.js
View file @
91bc934e
...
...
@@ -49,7 +49,7 @@ class OorderdeliverDao extends Dao {
return
[];
}
let
sql
=
`SELECT * FROM o_order_deliver WHERE deliver_id in (:deliverIdList)`
;
return
await
this
.
customQuery
(
sql
.
join
(
" "
)
,
{
deliverIdList
:
ids
});
return
await
this
.
customQuery
(
sql
,
{
deliverIdList
:
ids
});
}
async
mapByIds
(
params
)
{
...
...
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