Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
667e8e68
authored
May 20, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
a913760d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
app/Http/Controllers/OrderController.php
app/Http/Controllers/PermController.php
app/Http/Controllers/OrderController.php
View file @
667e8e68
...
@@ -963,7 +963,7 @@ Class OrderController extends Controller
...
@@ -963,7 +963,7 @@ Class OrderController extends Controller
$info
[
'manager'
]
=
array_merge
(
$manager
);
// 重新索引
$info
[
'manager'
]
=
array_merge
(
$manager
);
// 重新索引
$info
[
'online_sales_chief'
]
=
$perm
->
getUserByCondition
(
33
,
66
,
0
);
// 线上销售-33 总监-66
$info
[
'online_sales_chief'
]
=
$perm
->
getUserByCondition
(
33
,
66
,
0
);
// 线上销售-33 总监-66
$info
[
'online_sales_mgr'
]
=
$perm
->
getDepartmentUser
(
33
,
6
4
);
// 线上销售-33 主管-64
$info
[
'online_sales_mgr'
]
=
$perm
->
getDepartmentUser
(
33
,
6
3
);
// 线上销售-33 销售经理-63
$info
[
'online_sales_kefu_1'
]
=
$perm
->
getUserByCondition
(
34
,
''
,
0
);
// 线上一组
$info
[
'online_sales_kefu_1'
]
=
$perm
->
getUserByCondition
(
34
,
''
,
0
);
// 线上一组
$info
[
'online_sales_kefu_2'
]
=
$perm
->
getUserByCondition
(
35
,
''
,
0
);
// 线上二组
$info
[
'online_sales_kefu_2'
]
=
$perm
->
getUserByCondition
(
35
,
''
,
0
);
// 线上二组
$info
[
'online_sales_kefu_3'
]
=
$perm
->
getUserByCondition
(
36
,
''
,
0
);
// 线上三组
$info
[
'online_sales_kefu_3'
]
=
$perm
->
getUserByCondition
(
36
,
''
,
0
);
// 线上三组
...
@@ -972,7 +972,7 @@ Class OrderController extends Controller
...
@@ -972,7 +972,7 @@ Class OrderController extends Controller
$info
[
'offline_sales_chief'
]
=
$perm
->
getUserByCondition
(
40
,
66
,
0
);
// 线下销售-39 总监-66
$info
[
'offline_sales_chief'
]
=
$perm
->
getUserByCondition
(
40
,
66
,
0
);
// 线下销售-39 总监-66
$info
[
'offline_sales_all'
]
=
$perm
->
getDepartmentUser
(
40
,
62
);
// 线下销售各组人员
$info
[
'offline_sales_all'
]
=
$perm
->
getDepartmentUser
(
40
,
62
);
// 线下销售各组人员
$info
[
'self_manager'
]
=
$perm
->
getUserByCondition
(
38
,
[
6
4
,
66
]);
// 自营销售部总监、主管
$info
[
'self_manager'
]
=
$perm
->
getUserByCondition
(
38
,
[
6
3
,
66
]);
// 自营销售部总监、主管
$info
[
'self_kefu'
]
=
$perm
->
getUserByCondition
(
38
,
62
);
// 自营销售部客服
$info
[
'self_kefu'
]
=
$perm
->
getUserByCondition
(
38
,
62
);
// 自营销售部客服
$info
[
'test'
]
=
$perm
->
getUserByCondition
(
''
,
Config
(
'perm_args.test_position_id'
),
0
);
// 测试
$info
[
'test'
]
=
$perm
->
getUserByCondition
(
''
,
Config
(
'perm_args.test_position_id'
),
0
);
// 测试
...
...
app/Http/Controllers/PermController.php
View file @
667e8e68
...
@@ -442,11 +442,13 @@
...
@@ -442,11 +442,13 @@
$user
=
[];
$user
=
[];
foreach
(
$sub_department
as
$v
)
{
foreach
(
$sub_department
as
$v
)
{
$tmp
=
DB
::
table
(
'user_info'
)
->
where
(
'department_id'
,
$v
->
department_id
)
->
where
(
'position_id'
,
$position_id
)
->
select
(
'userId'
,
'name'
)
->
firs
t
();
$tmp
=
DB
::
table
(
'user_info'
)
->
where
(
'department_id'
,
$v
->
department_id
)
->
where
(
'position_id'
,
$position_id
)
->
select
(
'userId'
,
'name'
)
->
ge
t
();
if
(
!
$tmp
)
continue
;
if
(
!
$tmp
)
continue
;
$user
[]
=
$tmp
;
foreach
(
$tmp
as
$val
)
{
$user
[]
=
$val
;
}
}
}
return
$user
;
return
$user
;
...
...
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