Commit 1a010be6 by 杨树贤

筛选问题

parent 805546a1
Showing with 5 additions and 5 deletions
......@@ -30,12 +30,9 @@ class SkuListFilter
$map['create_time/range'] = $startTime . ',' . $endTime;
unset($map['create_time']);
}
if (!checkPerm('ViewAllSku')) {
$map['encoded/condition'] = request()->user->codeId;
}
$userId = request()->user->userId;
if (checkPerm('ViewSubordinateSku')) {
if (checkPerm('ViewAllSku')) {
} else if (checkPerm('ViewSubordinateSku')) {
//查看下级
$departmentService = new DepartmentService();
//下属用户id(结果包括自己的id)
......@@ -44,6 +41,8 @@ class SkuListFilter
$subordinateCodeIds = $adminUserService->getCodeIdsByUserIds($subordinateUserIds);
$subordinateCodeIds = $subordinateCodeIds->toArray();
$map['encoded/eqs'] = implode(',', $subordinateCodeIds);
} else {
$map['encoded/condition'] = request()->user->codeId;
}
if ((!empty($map['update_time']))) {
$times = explode('~', $map['update_time']);
......@@ -53,6 +52,7 @@ class SkuListFilter
unset($map['update_time']);
}
if (!empty($map['source_type'])) {
switch ($map['source_type']) {
case 'all':
......
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