Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
1a8a2e06
authored
Apr 10, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加可以设置销售为采购员
parent
c800283d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
app/Http/Services/AdminUserService.php
app/Model/IntracodeModel.php
app/Http/Services/AdminUserService.php
View file @
1a8a2e06
...
@@ -123,7 +123,9 @@ class AdminUserService
...
@@ -123,7 +123,9 @@ class AdminUserService
$usersMarket
=
$departmentService
->
getUserByDepartmentId
(
4
);
$usersMarket
=
$departmentService
->
getUserByDepartmentId
(
4
);
//运营部
//运营部
$usersOperation
=
$departmentService
->
getUserByDepartmentId
(
9
);
$usersOperation
=
$departmentService
->
getUserByDepartmentId
(
9
);
$users
=
array_merge
(
$usersMarket
,
$usersOperation
);
//销售部
$usersSales
=
$departmentService
->
getUserByDepartmentId
(
7
);
$users
=
array_merge
(
array_merge
(
$usersMarket
,
$usersOperation
),
$usersSales
);
$userIds
=
array_column
(
$users
,
'userId'
);
$userIds
=
array_column
(
$users
,
'userId'
);
$intraCodeModel
=
new
IntracodeModel
();
$intraCodeModel
=
new
IntracodeModel
();
return
$intraCodeModel
->
getEncodeByUserIds
(
$userIds
);
return
$intraCodeModel
->
getEncodeByUserIds
(
$userIds
);
...
...
app/Model/IntracodeModel.php
View file @
1a8a2e06
...
@@ -133,11 +133,13 @@ class IntracodeModel extends Model
...
@@ -133,11 +133,13 @@ class IntracodeModel extends Model
$usersMarket
=
$departmentService
->
getUserByDepartmentId
(
4
);
$usersMarket
=
$departmentService
->
getUserByDepartmentId
(
4
);
//运营部
//运营部
$usersOperation
=
$departmentService
->
getUserByDepartmentId
(
9
);
$usersOperation
=
$departmentService
->
getUserByDepartmentId
(
9
);
//销售部
$usersSales
=
$departmentService
->
getUserByDepartmentId
(
7
);
//采购部
//采购部
$userChannel
=
$departmentService
->
getUserByDepartmentId
(
8
);
$userChannel
=
$departmentService
->
getUserByDepartmentId
(
8
);
$userChannel2
=
$departmentService
->
getUserByDepartmentId
(
113
);
$userChannel2
=
$departmentService
->
getUserByDepartmentId
(
113
);
$userChannel
=
array_merge
(
$userChannel
,
$userChannel2
);
$userChannel
=
array_merge
(
$userChannel
,
$userChannel2
);
$users
=
array_merge
(
array_merge
(
$usersMarket
,
$usersOperation
),
$userChannel
);
$users
=
array_merge
(
array_merge
(
array_merge
(
$usersMarket
,
$usersOperation
),
$usersSales
),
$userChannel
);
$userIds
=
array_column
(
$users
,
'userId'
);
$userIds
=
array_column
(
$users
,
'userId'
);
$users
=
$this
->
getEncodeByUserIds
(
$userIds
,
$includeResign
);
$users
=
$this
->
getEncodeByUserIds
(
$userIds
,
$includeResign
);
...
...
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