|
@@ -27,14 +27,14 @@ class GoodOfflineLog extends Base
|
|
|
// if (!empty($role[DataGroupModel::$type_全部])) $where[] = ["createrid", "in", $role[DataGroupModel::$type_全部]];
|
|
|
|
|
|
//只有level2的账号过滤数据权限
|
|
|
- if ($this->level == 2) {
|
|
|
- $role = $this->checkDataShare();
|
|
|
- $hand = resign_hand_user($this->uid, 0);
|
|
|
- if (!empty($role[DataGroupModel::$type_全部])) {
|
|
|
- $arr = array_unique(array_merge($hand, $role[DataGroupModel::$type_全部]));
|
|
|
- $where[] = ['a.createrid', 'in', $arr];
|
|
|
- }
|
|
|
- }
|
|
|
+// if ($this->level == 2) {
|
|
|
+// $role = $this->checkDataShare();
|
|
|
+// $hand = resign_hand_user($this->uid, 0);
|
|
|
+// if (!empty($role[DataGroupModel::$type_全部])) {
|
|
|
+// $arr = array_unique(array_merge($hand, $role[DataGroupModel::$type_全部]));
|
|
|
+// $where[] = ['a.createrid', 'in', $arr];
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
$count = Db::name('good_offline_log')
|
|
|
->alias("a")
|