Commit dec1ebfb by mushishixian

fix

parent 66dbed48
Showing with 0 additions and 7 deletions
...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment