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
a91bf445
Commit
a91bf445
authored
Jun 01, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
c9144af1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
xggsve-order/app/base/db/impl/order/oorderDao.js
+3
-0
xggsve-order/app/base/service/impl/order/oorderSve.js
+1
-1
No files found.
xggsve-order/app/base/db/impl/order/oorderDao.js
View file @
a91bf445
...
@@ -201,6 +201,9 @@ class OorderDao extends Dao {
...
@@ -201,6 +201,9 @@ class OorderDao extends Dao {
sql
.
push
(
"AND t1.created_at <= :createdEnd"
);
sql
.
push
(
"AND t1.created_at <= :createdEnd"
);
}
}
if
(
params
.
delier_user_id
)
{
if
(
params
.
delier_user_id
)
{
sql
.
push
(
"AND t2.deliver_user_id = :delier_user_id"
);
}
if
(
params
.
deliver_user_id
)
{
sql
.
push
(
"AND t2.deliver_user_id = :deliver_user_id"
);
sql
.
push
(
"AND t2.deliver_user_id = :deliver_user_id"
);
}
}
if
(
params
.
deliver_user_path
)
{
if
(
params
.
deliver_user_path
)
{
...
...
xggsve-order/app/base/service/impl/order/oorderSve.js
View file @
a91bf445
...
@@ -920,7 +920,7 @@ class OorderService extends ServiceBase {
...
@@ -920,7 +920,7 @@ class OorderService extends ServiceBase {
if
(
params
.
isMain
){
//如果是主管 则可以看到自己和下属的所有的订单
if
(
params
.
isMain
){
//如果是主管 则可以看到自己和下属的所有的订单
where
.
deliver_user_path
=
params
.
deliver_user_path
where
.
deliver_user_path
=
params
.
deliver_user_path
}
else
{
//否则可以看到自己的订单
}
else
{
//否则可以看到自己的订单
where
.
deli
er_user_id
=
params
.
deli
er_user_id
where
.
deli
ver_user_id
=
params
.
deliv
er_user_id
}
}
}
}
return
await
this
.
aliOrderPageAll
(
where
);
return
await
this
.
aliOrderPageAll
(
where
);
...
...
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