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
a26592d7
Commit
a26592d7
authored
Jun 22, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
901900a1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ic-deliver/app/base/db/impl/auth/userDao.js
+3
-1
ic-deliver/app/base/db/impl/bizchance/bizoptDao.js
+1
-1
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
+1
-1
No files found.
ic-deliver/app/base/db/impl/auth/userDao.js
View file @
a26592d7
...
@@ -64,7 +64,9 @@ class UserDao extends Dao{
...
@@ -64,7 +64,9 @@ class UserDao extends Dao{
}
}
extraModelFilter
(){
extraModelFilter
(){
//return {"key":"include","value":[{model:this.db.models.app,},{model:this.db.models.role,as:"Roles",attributes:["id","name"],joinTableAttributes:['created_at']}]};
//return {"key":"include","value":[{model:this.db.models.app,},{model:this.db.models.role,as:"Roles",attributes:["id","name"],joinTableAttributes:['created_at']}]};
return
{
"key"
:
"include"
,
"value"
:[{
model
:
this
.
db
.
models
.
app
,},{
model
:
this
.
db
.
models
.
role
,
as
:
"Roles"
,
attributes
:[
"id"
,
"name"
]}]};
return
{
"key"
:
"include"
,
"value"
:[
{
model
:
this
.
db
.
models
.
app
,},
{
model
:
this
.
db
.
models
.
role
,
as
:
"Roles"
,
attributes
:[
"id"
,
"name"
]}]};
}
}
extraWhere
(
obj
,
w
,
qc
,
linkAttrs
){
extraWhere
(
obj
,
w
,
qc
,
linkAttrs
){
if
(
obj
.
bizpath
&&
obj
.
bizpath
!=
""
){
if
(
obj
.
bizpath
&&
obj
.
bizpath
!=
""
){
...
...
ic-deliver/app/base/db/impl/bizchance/bizoptDao.js
View file @
a26592d7
...
@@ -15,7 +15,7 @@ class BizoptDao extends Dao {
...
@@ -15,7 +15,7 @@ class BizoptDao extends Dao {
qw
[
"facilitator_id"
]
=
Number
(
qobj
.
company_id
)
qw
[
"facilitator_id"
]
=
Number
(
qobj
.
company_id
)
// 为空说明是管理员,不需设置组织结构过滤
// 为空说明是管理员,不需设置组织结构过滤
if
(
qobj
.
opath
&&
qobj
.
opath
!=
""
)
{
if
(
qobj
.
opath
&&
qobj
.
opath
!=
""
)
{
qw
[
"salesman_opcode"
]
=
qobj
.
opath
qw
[
"salesman_opcode"
]
=
{
[
this
.
db
.
Op
.
like
]:
'%qobj.opath%'
}
}
}
//不是来自平台前端查询
//不是来自平台前端查询
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
.
indexOf
(
"pmx"
)
<
0
)
{
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
.
indexOf
(
"pmx"
)
<
0
)
{
...
...
ic-deliver/app/base/db/impl/bizchance/deliverybillDao.js
View file @
a26592d7
...
@@ -24,7 +24,7 @@ class DeliverybillDao extends Dao {
...
@@ -24,7 +24,7 @@ class DeliverybillDao extends Dao {
qw
[
"facilitator_id"
]
=
Number
(
qobj
.
company_id
)
qw
[
"facilitator_id"
]
=
Number
(
qobj
.
company_id
)
// 为空说明是管理员,不需设置组织结构过滤
// 为空说明是管理员,不需设置组织结构过滤
if
(
qobj
.
opath
&&
qobj
.
opath
!=
""
)
{
if
(
qobj
.
opath
&&
qobj
.
opath
!=
""
)
{
qw
[
"salesman_opcode"
]
=
qobj
.
opath
qw
[
"salesman_opcode"
]
=
{
[
this
.
db
.
Op
.
like
]:
'%qobj.opath%'
}
}
}
//不是来自平台前端查询
//不是来自平台前端查询
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
.
indexOf
(
"pmx"
)
<
0
)
{
if
(
qobj
.
bizpath
&&
qobj
.
bizpath
.
indexOf
(
"pmx"
)
<
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