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
dec1ebfb
authored
Aug 18, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
66dbed48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
app/Model/IntracodeModel.php
app/Model/IntracodeModel.php
View file @
dec1ebfb
...
@@ -88,11 +88,6 @@ class IntracodeModel extends Model
...
@@ -88,11 +88,6 @@ class IntracodeModel extends Model
//获取采购员和对应的编码
//获取采购员和对应的编码
public
function
getChannelUsersEncode
(
$includeResign
=
true
)
public
function
getChannelUsersEncode
(
$includeResign
=
true
)
{
{
$redis
=
new
RedisModel
();
$result
=
json_decode
(
$redis
->
get
(
'department_user_encode_list'
),
true
);
if
(
$result
)
{
return
$result
;
}
$departmentService
=
new
DepartmentService
();
$departmentService
=
new
DepartmentService
();
//市场部
//市场部
$usersMarket
=
$departmentService
->
getUserByDepartmentId
(
4
);
$usersMarket
=
$departmentService
->
getUserByDepartmentId
(
4
);
...
@@ -107,8 +102,6 @@ class IntracodeModel extends Model
...
@@ -107,8 +102,6 @@ class IntracodeModel extends Model
foreach
(
$users
as
$code
)
{
foreach
(
$users
as
$code
)
{
$result
[
$code
[
'code_id'
]]
=
$code
[
'name'
]
.
'('
.
$code
[
'code_id'
]
.
')'
;
$result
[
$code
[
'code_id'
]]
=
$code
[
'name'
]
.
'('
.
$code
[
'code_id'
]
.
')'
;
}
}
$redis
->
set
(
'department_user_encode_list'
,
json_encode
(
$result
));
$redis
->
expire
(
'department_user_encode_list'
,
10
);
return
$result
;
return
$result
;
}
}
...
...
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